diff options
author | Gabriel Scherer <gabriel.scherer@gmail.com> | 2014-04-07 07:06:17 +0000 |
---|---|---|
committer | Gabriel Scherer <gabriel.scherer@gmail.com> | 2014-04-07 07:06:17 +0000 |
commit | de4f4cf8b39785866f50b97443837c6c990ad27e (patch) | |
tree | ab1ae349f2b673c9c40f7842f75811f07c15936e /man/Makefile | |
parent | 2ba45f9a2216957a3d8e015a237b59152bb0cea3 (diff) | |
download | ocaml-de4f4cf8b39785866f50b97443837c6c990ad27e.tar.gz |
PR#6358: obey DESTDIR in install targets
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14536 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'man/Makefile')
-rw-r--r-- | man/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/man/Makefile b/man/Makefile index 916ea24a81..f25b038f90 100644 --- a/man/Makefile +++ b/man/Makefile @@ -12,10 +12,10 @@ include ../config/Makefile -DIR=$(MANDIR)/man$(MANEXT) +INSTALL_DIR=$(DESTDIR)$(MANDIR)/man$(MANEXT) install: - for i in *.m; do cp $$i $(DIR)/`basename $$i .m`.$(MANEXT); done - echo '.so man$(MANEXT)/ocamlc.$(MANEXT)' > $(DIR)/ocamlc.opt.$(MANEXT) - echo '.so man$(MANEXT)/ocamlopt.$(MANEXT)' > $(DIR)/ocamlopt.opt.$(MANEXT) - echo '.so man$(MANEXT)/ocamlcp.$(MANEXT)' > $(DIR)/ocamloptp.$(MANEXT) + for i in *.m; do cp $$i $(INSTALL_DIR)/`basename $$i .m`.$(MANEXT); done + echo '.so man$(MANEXT)/ocamlc.$(MANEXT)' > $(INSTALL_DIR)/ocamlc.opt.$(MANEXT) + echo '.so man$(MANEXT)/ocamlopt.$(MANEXT)' > $(INSTALL_DIR)/ocamlopt.opt.$(MANEXT) + echo '.so man$(MANEXT)/ocamlcp.$(MANEXT)' > $(INSTALL_DIR)/ocamloptp.$(MANEXT) |