File: makefile.in-add-support-for-destdir.patch

package info (click to toggle)
epm 4.2-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,780 kB
  • sloc: ansic: 11,089; cpp: 1,596; makefile: 308
file content (147 lines) | stat: -rw-r--r-- 5,521 bytes parent folder | download | duplicates (2)
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 26 Dec 2020 22:05:05 +0000
X-Dgit-Generated: 4.2-10 0d4acb5fc8a8737ab3ec083c09c8b1e6996d5751
Subject: Makefile.in: Add support for DESTDIR.


---

--- epm-4.2.orig/Makefile.in
+++ epm-4.2/Makefile.in
@@ -165,58 +165,45 @@ clang-changes:
 #
 
 install: all @INSTALL_GUIS@ @INSTALL_OSX@
-	@echo Installing EPM programs in $(bindir)
-	-$(MKDIR) $(bindir)
-	$(RM) $(bindir)/epm
-	$(CP) epm $(bindir)
-	$(STRIP) $(bindir)/epm
-	$(RM) $(bindir)/epminstall
-	$(CP) epminstall $(bindir)
-	$(STRIP) $(bindir)/epminstall
-	$(RM) $(bindir)/mkepmlist
-	$(CP) mkepmlist $(bindir)
-	@echo Installing EPM manpages in $(mandir)/man1
-	-$(MKDIR) $(mandir)/man1
-	$(RM) $(mandir)/man1/epm.1
-	$(CP) $(srcdir)/doc/epm.man $(mandir)/man1/epm.1
-	$(RM) $(mandir)/man1/epminstall.1
-	$(CP) $(srcdir)/doc/epminstall.man $(mandir)/man1/epminstall.1
-	$(RM) $(mandir)/man1/mkepmlist.1
-	$(CP) $(srcdir)/doc/mkepmlist.man $(mandir)/man1/mkepmlist.1
-	$(RM) $(mandir)/man1/setup.1
-	$(CP) $(srcdir)/doc/setup.man $(mandir)/man1/setup.1
-	@echo Installing EPM manpages in $(mandir)/man5
-	-$(MKDIR) $(mandir)/man5
-	$(RM) $(mandir)/man5/epm.list.5
-	$(CP) $(srcdir)/doc/epm.list.man $(mandir)/man5/epm.list.5
-	$(RM) $(mandir)/man5/setup.types.5
-	$(CP) $(srcdir)/doc/setup.types.man $(mandir)/man5/setup.types.5
-	@echo Installing EPM documentation in $(docdir)
-	-$(MKDIR) $(docdir)
-	$(RM) $(docdir)/COPYING
-	$(CP) $(srcdir)/COPYING $(docdir)
-	$(RM) $(docdir)/README
-	$(CP) $(srcdir)/README $(docdir)
-	$(RM) $(docdir)/epm-book.html
-	$(CP) $(srcdir)/doc/epm-book.html $(docdir)
+	@echo Installing EPM programs in $(DESTDIR)$(bindir)
+	-$(MKDIR) $(DESTDIR)$(bindir)
+	$(CP) epm $(DESTDIR)$(bindir)
+	$(STRIP) $(DESTDIR)$(bindir)/epm
+	$(CP) epminstall $(DESTDIR)$(bindir)
+	$(STRIP) $(DESTDIR)$(bindir)/epminstall
+	$(CP) mkepmlist $(DESTDIR)$(bindir)
+	@echo Installing EPM manpages in $(DESTDIR)$(mandir)/man1
+	-$(MKDIR) $(DESTDIR)$(mandir)/man1
+	$(CP) $(srcdir)/doc/epm.man $(DESTDIR)$(mandir)/man1/epm.1
+	$(CP) $(srcdir)/doc/epminstall.man $(DESTDIR)$(mandir)/man1/epminstall.1
+	$(CP) $(srcdir)/doc/mkepmlist.man $(DESTDIR)$(mandir)/man1/mkepmlist.1
+	$(CP) $(srcdir)/doc/setup.man $(DESTDIR)$(mandir)/man1/setup.1
+	@echo Installing EPM manpages in $(DESTDIR)$(mandir)/man5
+	-$(MKDIR) $(DESTDIR)$(mandir)/man5
+	$(CP) $(srcdir)/doc/epm.list.man $(DESTDIR)$(mandir)/man5/epm.list.5
+	$(CP) $(srcdir)/doc/setup.types.man $(DESTDIR)$(mandir)/man5/setup.types.5
+	@echo Installing EPM documentation in $(DESTDIR)$(docdir)
+	-$(MKDIR) $(DESTDIR)$(docdir)
+	$(CP) $(srcdir)/COPYING $(DESTDIR)$(docdir)
+	$(CP) $(srcdir)/README $(DESTDIR)$(docdir)
+	$(CP) $(srcdir)/doc/epm-book.html $(DESTDIR)$(docdir)
 
 install-guis:	setup uninst
-	@echo Installing EPM setup/uninst in $(libdir)/epm
-	$(RM) -r $(libdir)/epm
-	-$(MKDIR) $(libdir)/epm
-	$(CP) setup $(libdir)/epm
-	-$(STRIP) $(libdir)/epm/setup
-	$(CP) uninst $(libdir)/epm
-	-$(STRIP) $(libdir)/epm/uninst
+	@echo Installing EPM setup/uninst in $(DESTDIR)$(libdir)/epm
+	-$(MKDIR) $(DESTDIR)$(libdir)/epm
+	$(CP) setup $(DESTDIR)$(libdir)/epm
+	-$(STRIP) $(DESTDIR)$(libdir)/epm/setup
+	$(CP) uninst $(DESTDIR)$(libdir)/epm
+	-$(STRIP) $(DESTDIR)$(libdir)/epm/uninst
 
 install-osx:
-	@echo Installing EPM OSX data files in $(datadir)/epm
-	$(RM) -r $(datadir)/epm
-	-$(MKDIR) $(datadir)/epm
-	$(CP) macosx/setup.icns $(datadir)/epm
-	$(CP) macosx/setup.info $(datadir)/epm
-	$(CP) macosx/uninst.icns $(datadir)/epm
-	$(CP) macosx/uninst.info $(datadir)/epm
+	@echo Installing EPM OSX data files in $(DESTDIR)$(datadir)/epm
+	$(RM) -r $(DESTDIR)$(datadir)/epm
+	-$(MKDIR) $(DESTDIR)$(datadir)/epm
+	$(CP) macosx/setup.icns $(DESTDIR)$(datadir)/epm
+	$(CP) macosx/setup.info $(DESTDIR)$(datadir)/epm
+	$(CP) macosx/uninst.icns $(DESTDIR)$(datadir)/epm
+	$(CP) macosx/uninst.info $(DESTDIR)$(datadir)/epm
 
 
 #
@@ -224,24 +211,24 @@ install-osx:
 #
 
 uninstall:
-	@echo Uninstalling EPM programs from $(bindir)
-	$(RM) $(bindir)/epm
-	$(RM) $(bindir)/epminstall
-	$(RM) $(bindir)/mkepmlist
-	@echo Uninstalling EPM manpages from $(mandir)/man1
-	$(RM) $(mandir)/man1/epm.1
-	$(RM) $(mandir)/man1/epminstall.1
-	$(RM) $(mandir)/man1/mkepmlist.1
-	$(RM) $(mandir)/man1/setup.1
-	@echo Uninstalling EPM manpages from $(mandir)/man5
-	$(RM) $(mandir)/man5/epm.list.5
-	$(RM) $(mandir)/man5/setup.types.5
-	@echo Uninstalling EPM documentation from $(docdir)
-	$(RM) -r $(docdir)
-	@echo Uninstalling EPM setup/uninstall from $(libdir)/epm
-	$(RM) -r $(libdir)/epm
-	@echo Uninstalling EPM OSX data files from $(datadir)/epm
-	$(RM) -r $(datadir)/epm
+	@echo Uninstalling EPM programs from $(DESTDIR)$(bindir)
+	$(RM) $(DESTDIR)$(bindir)/epm
+	$(RM) $(DESTDIR)$(bindir)/epminstall
+	$(RM) $(DESTDIR)$(bindir)/mkepmlist
+	@echo Uninstalling EPM manpages from $(DESTDIR)$(mandir)/man1
+	$(RM) $(DESTDIR)$(mandir)/man1/epm.1
+	$(RM) $(DESTDIR)$(mandir)/man1/epminstall.1
+	$(RM) $(DESTDIR)$(mandir)/man1/mkepmlist.1
+	$(RM) $(DESTDIR)$(mandir)/man1/setup.1
+	@echo Uninstalling EPM manpages from $(DESTDIR)$(mandir)/man5
+	$(RM) $(DESTDIR)$(mandir)/man5/epm.list.5
+	$(RM) $(DESTDIR)$(mandir)/man5/setup.types.5
+	@echo Uninstalling EPM documentation from $(DESTDIR)$(docdir)
+	$(RM) -r $(DESTDIR)$(docdir)
+	@echo Uninstalling EPM setup/uninstall from $(DESTDIR)$(libdir)/epm
+	$(RM) -r $(DESTDIR)$(libdir)/epm
+	@echo Uninstalling EPM OSX data files from $(DESTDIR)$(datadir)/epm
+	$(RM) -r $(DESTDIR)$(datadir)/epm
 
 
 #