X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fman%2Fghc.mk;h=96fef2dbf60e80acf2cea23cf16751ef69b83763;hb=75f9f3559b9959f067c893ae3f7c89da7fd18813;hp=65ec327da582a9effbd4a71d74b4574ed03784e7;hpb=852373b7f38344322964130295a73ed5ee8591e1;p=ghc-hetmet.git diff --git a/docs/man/ghc.mk b/docs/man/ghc.mk index 65ec327..96fef2d 100644 --- a/docs/man/ghc.mk +++ b/docs/man/ghc.mk @@ -24,8 +24,8 @@ $(MAN_PATH): docs/man/flags.xsl docs/man/flags.xml endif # Insert the commands and the library directory into the man page -docs/man/flags.xsl: docs/man/gen_flags.xsl.pl - $(PERL) $< "$(MAN_GHC_COMMANDS)" "$(libdir)" > $@ +docs/man/flags.xsl: docs/man/gen_flags.xsl.sh + $(SHELL) $< "$(MAN_GHC_COMMANDS)" "$(libdir)" > $@ # Re-use the flags documentation from the user's guide by injecting some # entities after the XML declaration to make it a stand-alone document. @@ -39,7 +39,9 @@ docs/man/flags.xml: docs/users_guide/flags.xml sed 1d $< >> $@ ifeq "$(BUILD_MAN)" "YES" +ifeq "$(phase)" "final" $(eval $(call all-target,docs/man,$(MAN_PATH))) +endif INSTALL_MANPAGES += $(MAN_PATH) @@ -47,9 +49,9 @@ install: install_man .PHONY: install_man install_man: $(MAN_PATH) - $(INSTALL_DIR) "$(DESTDIR)$(mandir)" - $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man$(MAN_SECTION)" - $(INSTALL_MAN) $(INSTALL_OPTS) $(MAN_PATH) "$(DESTDIR)$(mandir)/man$(MAN_SECTION)" + $(call INSTALL_DIR,"$(DESTDIR)$(mandir)") + $(call INSTALL_DIR,"$(DESTDIR)$(mandir)/man$(MAN_SECTION)") + $(call INSTALL_MAN,$(INSTALL_OPTS),$(MAN_PATH),"$(DESTDIR)$(mandir)/man$(MAN_SECTION)") endif $(eval $(call clean-target,docs/man,,$(MAN_PATH) docs/man/flags.xsl docs/man/flags.xml))