1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/lang/ocaml/files/patch-ocamldoc_Makefile
Stanislav Sedov 0588ad6621 - Update to 3.10.2.
Thanks to:	Thomas Crimi <tcrimi@procida.us>
2008-04-06 19:44:41 +00:00

25 lines
916 B
Plaintext

--- ocamldoc/Makefile.orig 2007-12-21 00:32:44.000000000 +0300
+++ ocamldoc/Makefile 2007-12-21 00:33:26.000000000 +0300
@@ -40,7 +40,7 @@
INSTALL_LIBDIR=$(OCAMLLIB)/ocamldoc
INSTALL_CUSTOMDIR=$(INSTALL_LIBDIR)/custom
INSTALL_BINDIR=$(OCAMLBIN)
-INSTALL_MANODIR=$(MANDIR)/man3
+INSTALL_MANODIR=$(MANDIR)/mann
INSTALL_MLIS=odoc_info.mli
INSTALL_CMIS=$(INSTALL_MLIS:.mli=.cmi)
@@ -265,7 +265,11 @@
$(CP) ocamldoc.hva *.cmi $(OCAMLDOC_LIBCMA) $(INSTALL_LIBDIR)
$(CP) $(INSTALL_MLIS) $(INSTALL_CMIS) $(INSTALL_LIBDIR)
if test -d $(INSTALL_MANODIR); then : ; else $(MKDIR) $(INSTALL_MANODIR); fi
- if test -d stdlib_man; then $(CP) stdlib_man/* $(INSTALL_MANODIR); else : ; fi
+ if test -d stdlib_man; then \
+ for f in stdlib_man/*; do \
+ $(BSD_INSTALL_MAN) $$f $(INSTALL_MANODIR)/`basename $$f .3o`.n; \
+ done; \
+ fi
installopt:
if test -f $(OCAMLDOC_OPT) ; then $(MAKE) installopt_really ; fi