summaryrefslogtreecommitdiff
path: root/net-misc/wput/files/wput-0.6-gentoo.diff
blob: 7ddf0ba3ba1951af1f4e0280af19f10e853c3a0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/Makefile.in
+++ b/Makefile.in
@@ -15,8 +15,12 @@
 
 install: all
 	cd po && $(MAKE) $(MAKEDEFS) $@
-	install -m0755 wput $(bindir)
-	install -m0644 doc/wput.1.gz $(mandir)
+
+	install -d $(DESTDIR)/$(bindir)
+	install -m0755 wput $(DESTDIR)/$(bindir)
+	install -d $(DESTDIR)/$(mandir)
+	install -m0644 doc/wput.1.gz $(DESTDIR)/$(mandir)
+	
 	@echo "----------------"
 	@echo "Wput installed. See 'wput -h' or 'man wput' for usage information."
 	@echo "Further documentation is located in the doc/USAGE.* files."