--- 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."