From 4217c6caef9f6d261df1449c590331878a493f14 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 23 Oct 2007 23:46:24 +0000 Subject: Fix installing the documentation in the bindists --- docs/man/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs/man') diff --git a/docs/man/Makefile b/docs/man/Makefile index ab20fde7b1..047a348d20 100644 --- a/docs/man/Makefile +++ b/docs/man/Makefile @@ -12,6 +12,8 @@ MAN_SECTION = 1 CLEAN_FILES += $(MAN_PAGE).$(MAN_SECTION) flags.xsl flags.xml +ifneq "$(DOING_BIN_DIST)" "YES" + $(MAN_PAGE).$(MAN_SECTION): flags.xsl flags.xml $(XSLTPROC) $(XSLTPROC_OPTS) flags.xsl flags.xml > $@ @@ -29,9 +31,16 @@ flags.xml: ../users_guide/flags.xml ]>" >> $@ tail -n +2 $< >> $@ +endif + install-docs:: $(MAN_PAGE).$(MAN_SECTION) $(INSTALL_DIR) $(DESTDIR)$(mandir) $(INSTALL_DIR) $(DESTDIR)$(mandir)/man$(MAN_SECTION) $(INSTALL_MAN) $(INSTALL_OPTS) $(MAN_PAGE).$(MAN_SECTION) $(DESTDIR)$(mandir)/man$(MAN_SECTION) +binary-dist:: $(MAN_PAGE).$(MAN_SECTION) + $(MKDIRHIER) $(BIN_DIST_DIR)/docs/man + cp Makefile $(BIN_DIST_DIR)/docs/man/ + cp $(MAN_PAGE).$(MAN_SECTION) $(BIN_DIST_DIR)/docs/man/ + include $(TOP)/mk/target.mk -- cgit v1.2.1