aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 37ca2eea1195559d8df35bda371922a5d099dece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# ###############################################
# LATER think about automatic adding of libraries
IEMLIBS = iemlib1 iemlib2 iem_t3_lib iem_mp3

# this is where we install to
PREFIX     =/usr/local/lib/pd

# this is where we install to (in detail)
INSTALL_BIN=$(PREFIX)/extra
INSTALL_DOC=$(PREFIX)/extra/iemhelp

# LATER think about separating iemabs and iemhelp

# ###############################################
.PHONY: iemlibs $(IEMLIBS)

iemlibs: $(IEMLIBS)

$(IEMLIBS):
	$(MAKE) -C $@/src

install: install-bin install-doc install-abs

install-bin:
	-install -d $(DESTDIR)$(INSTALL_BIN)
	-install -m 644 lib/*.* $(DESTDIR)$(INSTALL_BIN)

install-doc:
	-install -d $(DESTDIR)$(INSTALL_DOC)
	-for d in $(IEMLIBS); do \
	 for e in pd wav; do \
	  install -m644 $$d/*.$$e $(DESTDIR)$(INSTALL_DOC); \
	 done; \
	done

install-abs:
	-install -d $(DESTDIR)$(INSTALL_BIN)
	-install -m 644 iemabs/*.pd $(DESTDIR)$(INSTALL_BIN)

clean:
	for d in $(IEMLIBS); do \
	  $(MAKE) -C $$d/src clean; \
	done