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.
sed 1d $< >> $@
ifeq "$(BUILD_MAN)" "YES"
+ifeq "$(phase)" ""
$(eval $(call all-target,docs/man,$(MAN_PATH)))
+endif
INSTALL_MANPAGES += $(MAN_PATH)
.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))