blob: d398ae4e658d2a47f5e3615c25766a47c51668a6 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
Index: makefile.in
===================================================================
RCS file: /cvsroot/pure-data/pd/src/makefile.in,v
retrieving revision 1.5
diff -u -w -r1.5 makefile.in
--- makefile.in 6 Nov 2004 16:07:33 -0000 1.5
+++ makefile.in 21 Nov 2005 04:32:51 -0000
@@ -113,29 +113,48 @@
cd ../extra/pique;make @EXTERNTARGET@
INSTDIR = $(DESTDIR)/$(INSTALL_PREFIX)
-MANINSTDIR = $(DESTDIR)/$(INSTALL_PREFIX)/$(MANDIR)
BINARYMODE=@binarymode@
+# varibles to match packages/Makefile.buildlayout so that they can be easily
+# overridden when building extended builds. <hans@at.or.at>
+BIN_DEST = $(INSTDIR)/bin
+DOCS_DEST = $(INSTDIR)/doc
+INCLUDE_DEST = $(INSTDIR)/include
+LIBPD_DEST = $(INSTDIR)/lib/pd
+LIBBIN_DEST = $(LIBPD_DEST)/bin
+MAN_DEST = $(INSTDIR)/$(MANDIR)
+
install: all
- install -d $(INSTDIR)/lib/pd/bin
- install $(BIN_DIR)/$(GUINAME) $(INSTDIR)/lib/pd/bin/$(GUINAME)
- install $(BIN_DIR)/pd-watchdog $(INSTDIR)/lib/pd/bin/pd-watchdog
- install -m644 $(BIN_DIR)/pd.tk $(INSTDIR)/lib/pd/bin/pd.tk
- install -d $(INSTDIR)/bin
- install $(BINARYMODE) $(PDEXEC) $(INSTDIR)/bin/pd
- install -m755 $(BIN_DIR)/pdsend $(INSTDIR)/bin/pdsend
- install -m755 $(BIN_DIR)/pdreceive $(INSTDIR)/bin/pdreceive
- cp -pr ../doc ../extra $(INSTDIR)/lib/pd/
+ install -d $(LIBBIN_DEST)
+ install $(BIN_DIR)/$(GUINAME) $(LIBBIN_DEST)/$(GUINAME)
+ install $(BIN_DIR)/pd-watchdog $(LIBBIN_DEST)/pd-watchdog
+ install -m644 $(BIN_DIR)/pd.tk $(LIBBIN_DEST)/pd.tk
+ install -d $(BIN_DEST)
+ install $(BINARYMODE) $(PDEXEC) $(BIN_DEST)/pd
+ install -m755 $(BIN_DIR)/pdsend $(BIN_DEST)/pdsend
+ install -m755 $(BIN_DIR)/pdreceive $(BIN_DEST)/pdreceive
+ for dir in $(shell ls -1 ../doc | grep -v CVS); do \
+ echo "installing $$dir"; \
+ install -d $(DOCS_DEST)/$$dir ; \
+ install -p ../doc/$$dir/*.* $(DOCS_DEST)/$$dir ; \
+ done
+ for dir in $(shell ls -1 ../doc/7.stuff | grep -v CVS); do \
+ echo "installing 7.stuff/$$dir"; \
+ install -d $(DOCS_DEST)/7.stuff/$$dir ; \
+ install -p ../doc/7.stuff/$$dir/*.* $(DOCS_DEST)/7.stuff/$$dir ; \
+ done
+ cp -pr ../extra $(LIBPD_DEST)/
rm -f $(INSTDIR)/extra/*/*.o
- install -d $(INSTDIR)/include
- install -m644 m_pd.h $(INSTDIR)/include/m_pd.h
- install -d $(MANINSTDIR)/man1
- gzip < ../man/pd.1 > $(MANINSTDIR)/man1/pd.1.gz
- chmod 644 $(MANINSTDIR)/man1/pd.1.gz
- gzip < ../man/pdsend.1 > $(MANINSTDIR)/man1/pdsend.1.gz
- chmod 644 $(MANINSTDIR)/man1/pdsend.1.gz
- gzip < ../man/pdreceive.1 > $(MANINSTDIR)/man1/pdreceive.1.gz
- chmod 644 $(MANINSTDIR)/man1/pdreceive.1.gz
+ install -d $(INCLUDE_DEST)
+ install -m644 m_pd.h $(INCLUDE_DEST)/m_pd.h
+ install -d $(MAN_DEST)/man1
+ gzip < ../man/pd.1 > $(MAN_DEST)/man1/pd.1.gz
+ chmod 644 $(MAN_DEST)/man1/pd.1.gz
+ gzip < ../man/pdsend.1 > $(MAN_DEST)/man1/pdsend.1.gz
+ chmod 644 $(MAN_DEST)/man1/pdsend.1.gz
+ gzip < ../man/pdreceive.1 > $(MAN_DEST)/man1/pdreceive.1.gz
+ chmod 644 $(MAN_DEST)/man1/pdreceive.1.gz
+ @echo "Pd install succeeded."
local-clean:
-rm -f ../obj/* $(BIN_DIR)/pd $(BIN_DIR)/$(GUINAME) $(BIN_DIR)/pdsend \
@@ -166,14 +185,14 @@
$(CC) $(INCLUDE) $(CFLAGS) -M $(SRC) > makefile.dependencies
uninstall:
- rm -f -r $(INSTDIR)/lib/pd
- rm -f $(INSTDIR)/bin/pd
- rm -f $(INSTDIR)/bin/pdsend
- rm -f $(INSTDIR)/bin/pdreceive
- rm -f $(INSTDIR)/include/m_pd.h
- rm -f $(MANINSTDIR)/man1/pd.1.gz
- rm -f $(MANINSTDIR)/man1/pdsend.1.gz
- rm -f $(MANINSTDIR)/man1/pdreceive.1.gz
+ rm -f -r $(LIBPD_DEST)
+ rm -f $(BIN_DEST)/pd
+ rm -f $(BIN_DEST)/pdsend
+ rm -f $(BIN_DEST)/pdreceive
+ rm -f $(INCLUDE_DEST)/m_pd.h
+ rm -f $(MAN_DEST)/man1/pd.1.gz
+ rm -f $(MAN_DEST)/man1/pdsend.1.gz
+ rm -f $(MAN_DEST)/man1/pdreceive.1.gz
include makefile.dependencies
|