--- Makefile.in.orig 2005-09-03 17:20:27.000000000 +1000 +++ Makefile.in 2005-09-03 17:22:26.000000000 +1000 @@ -48,14 +48,14 @@ install: lft lft.8 whob whob.8 @echo "Installing LFT and WhoB" - test -d $(bindir)/. || $(MKDIR) $(bindir) - $(INSTALL) lft $(bindir)/lft - $(INSTALL) whob $(bindir)/whob - @ ( echo chown root $(bindir)/lft && chown root $(bindir)/lft && echo chmod u+s $(bindir)/lft && chmod u+s $(bindir)/lft ) || echo "***" WARNING: could not set $(bindir) suid to root - test -d $(mandir)/man8/. || $(MKDIR) $(mandir)/man8 + test -d $(DESTDIR)$(bindir)/. || $(MKDIR) $(DESTDIR)$(bindir) + $(INSTALL) lft $(DESTDIR)$(bindir)/lft + $(INSTALL) whob $(DESTDIR)$(bindir)/whob + @ ( echo chown root $(DESTDIR)$(bindir)/lft && chown root $(DESTDIR)$(bindir)/lft && echo chmod u+s $(DESTDIR)$(bindir)/lft && chmod u+s $(DESTDIR)$(bindir)/lft ) || echo "***" WARNING: could not set $(bindir) suid to root + test -d $(DESTDIR)$(mandir)/man8/. || $(MKDIR) $(DESTDIR)$(mandir)/man8 @echo "Installing LFT and WhoB manual pages" - $(INSTALL) lft.8 $(mandir)/man8/lft.8 - $(INSTALL) whob.8 $(mandir)/man8/whob.8 + $(INSTALL) lft.8 $(DESTDIR)$(mandir)/man8/lft.8 + $(INSTALL) whob.8 $(DESTDIR)$(mandir)/man8/whob.8 clean: $(RM) *.o core* lft whob *~