aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: cadabff11efd51cfbdb493c841334ab87e52636d (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
# ###############################################
# 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 ${INSTALL_BIN}
	-install -m 644 lib/*.* $(INSTALL_BIN)

install-doc:
	-install -d ${INSTALL_DOC}
	-install -m 644 iemhelp/*.pd $(INSTALL_DOC)

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

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