summaryrefslogtreecommitdiff
path: root/man/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'man/Makefile')
-rw-r--r--man/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/man/Makefile b/man/Makefile
index 916ea24a81..c1c2df3752 100644
--- a/man/Makefile
+++ b/man/Makefile
@@ -12,10 +12,13 @@
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)