patch-Makefile_in 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. $OpenBSD: patch-Makefile_in,v 1.2 2010/07/09 07:17:37 sthen Exp $
  2. --- Makefile.in.orig Wed Nov 22 08:08:22 1995
  3. +++ Makefile.in Thu Jul 8 21:50:46 2010
  4. @@ -62,7 +62,7 @@ EXTRASRC = @EXTRASRC@
  5. EXTRAOBJ = @EXTRAOBJ@
  6. # Common prefix for machine-independent installed files.
  7. -prefix = /usr/local
  8. +prefix = @prefix@
  9. # Common prefix for machine-dependent installed files.
  10. exec_prefix = $(prefix)
  11. @@ -169,17 +169,18 @@ install: installdirs \
  12. $(mandir)/$(instname).$(manext)
  13. installdirs:
  14. - $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(mandir)
  15. + $(SHELL) ${srcdir}/mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(infodir) \
  16. + $(DESTDIR)$(mandir)
  17. $(bindir)/$(instname): popclient
  18. - $(INSTALL_PROGRAM) popclient $@
  19. + $(INSTALL_PROGRAM) popclient $(DESTDIR)$@
  20. $(infodir)/popclient.info: popclient.info
  21. if [ -r ./popclient.info ]; then dir=.; else dir=$(srcdir); fi; \
  22. for file in $${dir}/popclient.info*; do \
  23. name="`basename $$file`"; \
  24. $(INSTALL_DATA) $$file \
  25. - `echo $@ | sed "s,popclient.info\$$,$$name,"`; \
  26. + `echo $(DESTDIR)$@ | sed "s,popclient.info\$$,$$name,"`; \
  27. done
  28. # Run install-info only if it exists.
  29. # Use `if' instead of just prepending `-' to the
  30. @@ -187,11 +188,11 @@ $(infodir)/popclient.info: popclient.info
  31. # We use `$(SHELL) -c' because some shells do not
  32. # fail gracefully when there is an unknown command.
  33. if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
  34. - install-info --infodir=$(infodir) $$dir/popclient.info; \
  35. + cd $(DESTDIR)$(infodir) && install-info popclient.info dir; \
  36. else true; fi
  37. $(mandir)/$(instname).$(manext): popclient.man
  38. - $(INSTALL_DATA) $(srcdir)/popclient.man $@
  39. + $(INSTALL_DATA) $(srcdir)/popclient.man $(DESTDIR)$@
  40. .PHONY: clean realclean distclean mostlyclean