summaryrefslogtreecommitdiff
path: root/net-misc/wput/files/wput-0.6.2-respect-destdir.patch
blob: 9cece1f388f856a3d98613139179350a3e1014b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/Makefile.in
+++ b/Makefile.in
@@ -16,12 +16,12 @@ win-clean:
 
 install: all
 	cd po && $(MAKE) $(MAKEDEFS) $@
-	mkdir -p $(bindir) 
-	mkdir -p $(mandir) 
-	install -m0755 wput $(bindir)
-	install -m0644 doc/wput.1.gz $(mandir)
-	ln -s $(bindir)/wput $(bindir)/wdel
-	install -m0644 doc/wdel.1.gz $(mandir)
+	install -d $(DESTDIR)/$(bindir)
+	install -d $(DESTDIR)/$(mandir)
+	install -m0755 wput $(DESTDIR)/$(bindir)
+	install -m0644 doc/wput.1 $(DESTDIR)/$(mandir)
+	ln -s wput $(DESTDIR)/$(bindir)/wdel
+	install -m0644 doc/wdel.1 $(DESTDIR)/$(mandir)
 	@echo "----------------"
 	@echo "Wput and Wdel installed. See 'wput/wdel -h' or 'man wput/wdel' for"
 	@echo "usage information."