Support DESTDIR. --- cgi-src/Makefile.in.orig 2005-05-20 15:10:25.000000000 -0400 +++ cgi-src/Makefile.in 2014-10-01 17:12:40.000000000 -0400 @@ -67,17 +67,17 @@ cd .. ; $(MAKE) $(MFLAGS) strerror.o install: all - -mkdir -p $(CGIBINDIR) - rm -f $(CGIBINDIR)/redirect - cp redirect $(CGIBINDIR)/redirect - rm -f $(MANDIR)/man8/redirect.8 - cp redirect.8 $(MANDIR)/man8/redirect.8 - rm -f $(CGIBINDIR)/ssi - cp ssi $(CGIBINDIR)/ssi - rm -f $(MANDIR)/man8/ssi.8 - cp ssi.8 $(MANDIR)/man8/ssi.8 - rm -f $(CGIBINDIR)/phf - cp phf $(CGIBINDIR)/phf + -mkdir -p $(DESTDIR)$(CGIBINDIR) + rm -f $(DESTDIR)$(CGIBINDIR)/redirect + cp redirect $(DESTDIR)$(CGIBINDIR)/redirect + rm -f $(DESTDIR)$(MANDIR)/man8/redirect.8 + cp redirect.8 $(DESTDIR)$(MANDIR)/man8/redirect.8 + rm -f $(DESTDIR)$(CGIBINDIR)/ssi + cp ssi $(DESTDIR)$(CGIBINDIR)/ssi + rm -f $(DESTDIR)$(MANDIR)/man8/ssi.8 + cp ssi.8 $(DESTDIR)$(MANDIR)/man8/ssi.8 + rm -f $(DESTDIR)$(CGIBINDIR)/phf + cp phf $(DESTDIR)$(CGIBINDIR)/phf clean: rm -f $(CLEANFILES)