summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorSébastien Hinderer <Sebastien.Hinderer@inria.fr>2021-10-20 12:16:14 +0200
committerSébastien Hinderer <Sebastien.Hinderer@inria.fr>2021-10-20 12:16:14 +0200
commite2c2611f531a158926250b896603e3eba6aaa9d8 (patch)
tree530f325a1d6539e8a4fd6014856bd2acc01010b7 /man
parent89e4e1eca0becc9e3728429e3d4495275b5c17d7 (diff)
downloadocaml-e2c2611f531a158926250b896603e3eba6aaa9d8.tar.gz
Simplify the installation of man pages
Diffstat (limited to 'man')
-rw-r--r--man/Makefile18
-rw-r--r--man/ocaml.1 (renamed from man/ocaml.m)0
-rw-r--r--man/ocamlc.1 (renamed from man/ocamlc.m)0
-rw-r--r--man/ocamlc.opt.11
-rw-r--r--man/ocamlcp.1 (renamed from man/ocamlcp.m)0
-rw-r--r--man/ocamldebug.1 (renamed from man/ocamldebug.m)0
-rw-r--r--man/ocamldep.1 (renamed from man/ocamldep.m)0
-rw-r--r--man/ocamldoc.1 (renamed from man/ocamldoc.m)0
-rw-r--r--man/ocamllex.1 (renamed from man/ocamllex.m)0
-rw-r--r--man/ocamlmktop.1 (renamed from man/ocamlmktop.m)0
-rw-r--r--man/ocamlopt.1 (renamed from man/ocamlopt.m)0
-rw-r--r--man/ocamlopt.opt.11
-rw-r--r--man/ocamloptp.11
-rw-r--r--man/ocamlprof.1 (renamed from man/ocamlprof.m)0
-rw-r--r--man/ocamlrun.1 (renamed from man/ocamlrun.m)0
-rw-r--r--man/ocamlyacc.1 (renamed from man/ocamlyacc.m)0
16 files changed, 10 insertions, 11 deletions
diff --git a/man/Makefile b/man/Makefile
index 52d1c19f53..36d3126563 100644
--- a/man/Makefile
+++ b/man/Makefile
@@ -14,17 +14,13 @@
#**************************************************************************
ROOTDIR = ..
-include $(ROOTDIR)/Makefile.config
+include $(ROOTDIR)/Makefile.common
-DESTDIR ?=
-INSTALL_DIR=$(DESTDIR)$(MANDIR)/man$(PROGRAMS_MAN_SECTION)
+MANPAGES = $(addsuffix .1,\
+ ocaml ocamlc ocamlc.opt ocamlcp ocamldebug ocamldep ocamldoc ocamllex \
+ ocamlmktop ocamlopt ocamlopt.opt ocamloptp ocamlprof ocamlrun ocamlyacc)
+.PHONY: install
install:
- for i in *.m; do cp \
- $$i $(INSTALL_DIR)/`basename $$i .m`.$(PROGRAMS_MAN_SECTION); done
- echo '.so man$(PROGRAMS_MAN_SECTION)/ocamlc.$(PROGRAMS_MAN_SECTION)' \
- > $(INSTALL_DIR)/ocamlc.opt.$(PROGRAMS_MAN_SECTION)
- echo '.so man$(PROGRAMS_MAN_SECTION)/ocamlopt.$(PROGRAMS_MAN_SECTION)' \
- > $(INSTALL_DIR)/ocamlopt.opt.$(PROGRAMS_MAN_SECTION)
- echo '.so man$(PROGRAMS_MAN_SECTION)/ocamlcp.$(PROGRAMS_MAN_SECTION)' \
- > $(INSTALL_DIR)/ocamloptp.$(PROGRAMS_MAN_SECTION)
+ $(MKDIR) $(INSTALL_PROGRAMS_MAN_DIR)
+ $(INSTALL_DATA) $(MANPAGES) $(INSTALL_PROGRAMS_MAN_DIR)
diff --git a/man/ocaml.m b/man/ocaml.1
index 9d19f1b3c5..9d19f1b3c5 100644
--- a/man/ocaml.m
+++ b/man/ocaml.1
diff --git a/man/ocamlc.m b/man/ocamlc.1
index adbfe3ec8b..adbfe3ec8b 100644
--- a/man/ocamlc.m
+++ b/man/ocamlc.1
diff --git a/man/ocamlc.opt.1 b/man/ocamlc.opt.1
new file mode 100644
index 0000000000..3d957b581d
--- /dev/null
+++ b/man/ocamlc.opt.1
@@ -0,0 +1 @@
+.so man1/ocamlc.1
diff --git a/man/ocamlcp.m b/man/ocamlcp.1
index d6c983d167..d6c983d167 100644
--- a/man/ocamlcp.m
+++ b/man/ocamlcp.1
diff --git a/man/ocamldebug.m b/man/ocamldebug.1
index f03ad60f39..f03ad60f39 100644
--- a/man/ocamldebug.m
+++ b/man/ocamldebug.1
diff --git a/man/ocamldep.m b/man/ocamldep.1
index 1c39e9d52a..1c39e9d52a 100644
--- a/man/ocamldep.m
+++ b/man/ocamldep.1
diff --git a/man/ocamldoc.m b/man/ocamldoc.1
index ffdee529a8..ffdee529a8 100644
--- a/man/ocamldoc.m
+++ b/man/ocamldoc.1
diff --git a/man/ocamllex.m b/man/ocamllex.1
index 58e0362764..58e0362764 100644
--- a/man/ocamllex.m
+++ b/man/ocamllex.1
diff --git a/man/ocamlmktop.m b/man/ocamlmktop.1
index 09a4126c01..09a4126c01 100644
--- a/man/ocamlmktop.m
+++ b/man/ocamlmktop.1
diff --git a/man/ocamlopt.m b/man/ocamlopt.1
index 8540a08c1e..8540a08c1e 100644
--- a/man/ocamlopt.m
+++ b/man/ocamlopt.1
diff --git a/man/ocamlopt.opt.1 b/man/ocamlopt.opt.1
new file mode 100644
index 0000000000..f548264fa1
--- /dev/null
+++ b/man/ocamlopt.opt.1
@@ -0,0 +1 @@
+.so man1/ocamlopt.1
diff --git a/man/ocamloptp.1 b/man/ocamloptp.1
new file mode 100644
index 0000000000..bfd9d3e31a
--- /dev/null
+++ b/man/ocamloptp.1
@@ -0,0 +1 @@
+.so man1/ocamlcp.1
diff --git a/man/ocamlprof.m b/man/ocamlprof.1
index 97d5671441..97d5671441 100644
--- a/man/ocamlprof.m
+++ b/man/ocamlprof.1
diff --git a/man/ocamlrun.m b/man/ocamlrun.1
index 78216f2eb5..78216f2eb5 100644
--- a/man/ocamlrun.m
+++ b/man/ocamlrun.1
diff --git a/man/ocamlyacc.m b/man/ocamlyacc.1
index f522d5cc26..f522d5cc26 100644
--- a/man/ocamlyacc.m
+++ b/man/ocamlyacc.1