summaryrefslogtreecommitdiff
path: root/development/inform/destdir.diff
blob: c85bbf956346d86f5f54062030b87e1331df0f29 (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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
diff -Naur inform-6.35-r2/Makefile inform-6.35-r2.patched/Makefile
--- inform-6.35-r2/Makefile	2021-06-22 00:31:25.000000000 -0400
+++ inform-6.35-r2.patched/Makefile	2021-09-01 15:38:28.641094355 -0400
@@ -155,7 +155,7 @@
 	strip $(BINNAME)
 
 install-compiler: $(BINNAME)
-	install -d -m $(DIRPERM) $(DESTDIR)$(BINDIR)
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(BINDIR)
 	install -c -m $(BINPERM) $(BINNAME) $(DESTDIR)$(BINDIR)
 
 #########################################################
@@ -172,24 +172,23 @@
 install-stdlib-all: install-stdlib install-stdinc install-stddemos install-stdtutor
 
 install-stdlib:
-	install -d -m $(DIRPERM) $(STDLIB)
-	install -c -m $(FILEPERM) $(wildcard ${STDSRC}/*) $(STDLIB)
-	@./fixlinks.sh $(STDLIB) $(STDLIB_LINKS)
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(STDLIB)
+	install -c -m $(FILEPERM) $(wildcard ${STDSRC}/*) $(DESTDIR)$(STDLIB)
 	@echo "** Done installing Standard Library."
 
 install-stdinc:
-	install -d -m $(DIRPERM) $(STDINC)
-	install -c -m $(FILEPERM) $(wildcard ${STDINC_SRC}/*) $(STDINC)
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(STDINC)
+	install -c -m $(FILEPERM) $(wildcard ${STDINC_SRC}/*) $(DESTDIR)$(STDINC)
 	@echo "** Done installing Standard Library includes."
 
 install-stddemos: stddemos
-	install -d -m $(DIRPERM) $(STDDEMO)
-	install -c -m $(FILEPERM) $(wildcard ${STDDEMOS_SRC}/*) $(STDDEMO)
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(STDDEMO)
+	install -c -m $(FILEPERM) $(wildcard ${STDDEMOS_SRC}/*) $(DESTDIR)$(STDDEMO)
 	@echo "** Done installing Standard Library demos."
 
 install-stdtutor: stdtutor
-	install -d -m $(DIRPERM) $(STDTUTOR)
-	install -c -m $(FILEPERM) $(wildcard ${STDTUTOR_SRC}/*) $(STDTUTOR)
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(STDTUTOR)
+	install -c -m $(FILEPERM) $(wildcard ${STDTUTOR_SRC}/*) $(DESTDIR)$(STDTUTOR)
 	@echo "** Done installing Standard Library tutorials."
 
 
@@ -206,38 +205,40 @@
 
 install-punywrapper:
 	sed 's,^LIBPATH.*,LIBPATH=${SHAREDIR},g' $(PUNYINFORMSH) > $(PUNYINFORMSH)-scratch
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(BINDIR)
 	install -c -m $(BINPERM) $(PUNYINFORMSH)-scratch $(DESTDIR)$(BINDIR)/$(PUNYINFORMSH)
 	cd $(DESTDIR)$(BINDIR) ; ln -sf $(PUNYINFORMSH) $(PUNYINFORM)
 	rm -f $(PUNYINFORMSH)-scratch
 
 install-punylib:
-	install -d -m $(DIRPERM) $(PUNYLIB)
-	install -c -m $(FILEPERM) $(wildcard ${PUNYLIB_SRC}/*) $(PUNYLIB)
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(PUNYLIB)
+	install -c -m $(FILEPERM) $(wildcard ${PUNYLIB_SRC}/*) $(DESTDIR)$(PUNYLIB)
 	@echo "** Done installing PunyInform Library."
 
 install-punyhowto:
-	install -d -m $(DIRPERM) $(PUNYHOWTO)
-	install -c -m $(FILEPERM) $(wildcard ${PUNYHOWTO_SRC}/*) $(PUNYHOWTO)
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(PUNYHOWTO)
+	install -c -m $(FILEPERM) $(wildcard ${PUNYHOWTO_SRC}/*) $(DESTDIR)$(PUNYHOWTO)
 
 install-punytests:
-	install -d -m $(DIRPERM) $(PUNYTESTS)
-	install -c -m $(FILEPERM) $(wildcard ${PUNYTESTS_SRC}/*) $(PUNYTESTS)
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(PUNYTESTS)
+	install -c -m $(FILEPERM) $(wildcard ${PUNYTESTS_SRC}/*) $(DESTDIR)$(PUNYTESTS)
 
 install-punydocs:
-	install -d -m $(DIRPERM) $(PUNYDOCS)
-	install -d -m $(DIRPERM) $(PUNYDOCS1)
-	install -d -m $(DIRPERM) $(PUNYDOCS2)
-	install -d -m $(DIRPERM) $(PUNYDOCS3)
-	install -c -m $(FILEPERM) $(wildcard ${PUNYDOCS_SRC}/*pdf) $(PUNYDOCS)
-	install -c -m $(FILEPERM) $(wildcard ${PUNYDOCS_DIR1}/*) $(PUNYDOCS1)
-	install -c -m $(FILEPERM) $(wildcard ${PUNYDOCS_DIR2}/*) $(PUNYDOCS2)
-	install -c -m $(FILEPERM) $(wildcard ${PUNYDOCS_DIR3}/*) $(PUNYDOCS3)
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(PUNYDOCS)
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(PUNYDOCS1)
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(PUNYDOCS2)
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(PUNYDOCS3)
+	install -c -m $(FILEPERM) $(wildcard ${PUNYDOCS_SRC}/*pdf) $(DESTDIR)$(PUNYDOCS)
+	install -c -m $(FILEPERM) $(wildcard ${PUNYDOCS_DIR1}/*) $(DESTDIR)$(PUNYDOCS1)
+	install -c -m $(FILEPERM) $(wildcard ${PUNYDOCS_DIR2}/*) $(DESTDIR)$(PUNYDOCS2)
+	install -c -m $(FILEPERM) $(wildcard ${PUNYDOCS_DIR3}/*) $(DESTDIR)$(PUNYDOCS3)
 
 install-punymisc:
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(PUNY)
 	for file in $(PUNYMISC_FILES); do \
-		install -c -m $(FILEPERM) $(PUNYSRC)/$$file $(PUNY); \
+		install -c -m $(FILEPERM) $(PUNYSRC)/$$file $(DESTDIR)$(PUNY); \
 	done
-	install -c -m $(FILEPERM) $(wildcard ${PUNYSRC}/*.inf) $(PUNY)
+	install -c -m $(FILEPERM) $(wildcard ${PUNYSRC}/*.inf) $(DESTDIR)$(PUNY)
 
 install-puny:	install-punylib install-punywrapper install-punymisc install-punyhowto install-punytests install-punydocs
 
@@ -246,16 +247,17 @@
 # Installing everything else
 
 install-manual:
-	install -d -m $(DIRPERM) $(MANDIR)
-	install -c -m $(FILEPERM) $(MANPAGE) $(MANDIR)
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(MANDIR)
+	install -c -m $(FILEPERM) $(MANPAGE) $(DESTDIR)$(MANDIR)
 
 install-contrib:
+	mkdir -p -m $(DIRPERM) $(DESTDIR)$(BINDIR)
 	install -c -m $(BINPERM) contrib/pblorb.pl $(DESTDIR)$(BINDIR)
 	install -c -m $(BINPERM) contrib/scanblorb.pl $(DESTDIR)$(BINDIR)
 	cd $(DESTDIR)$(BINDIR) ; ln -sf pblorb.pl pblorb
 	cd $(DESTDIR)$(BINDIR) ; ln -sf scanblorb.pl scanblorb
 
-install-strip: strip install
+install-strip: all strip install
 
 uninstall:
 	rm -f $(DESTDIR)$(BINDIR)/$(BINNAME)