X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fman%2FMakefile;h=e4e0c33f04a7f2c509a05f0f1b16a19264f0f9ec;hb=5892af0e08fdb890b5a0b9a64346d9f7773a6ed8;hp=155767e52d262b34fd3412b170542e9803d85741;hpb=160e41ed98615c633be9a7c27ec2f9ed768dae7f;p=ghc-hetmet.git diff --git a/docs/man/Makefile b/docs/man/Makefile index 155767e..e4e0c33 100644 --- a/docs/man/Makefile +++ b/docs/man/Makefile @@ -23,7 +23,7 @@ $(MAN_PAGE).$(MAN_SECTION): flags.xsl flags.xml # Insert the commands and the library directory into the man page flags.xsl: gen_flags.xsl.pl - perl gen_flags.xsl.pl "$(GHC_COMMANDS)" "$(libdir)" > $@ + $(PERL) gen_flags.xsl.pl "$(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. @@ -33,7 +33,8 @@ flags.xml: ../users_guide/flags.xml echo " \ \ ]>" >> $@ - tail -n +2 $< >> $@ + # "sed 1d" == "tail -n +2", but Solaris apparently rejects the latter + sed 1d $< >> $@ endif @@ -44,11 +45,7 @@ install-docs:: $(MAN_PAGE).$(MAN_SECTION) endif -binary-dist:: $(MAN_PAGE).$(MAN_SECTION) - $(MKDIRHIER) $(BIN_DIST_DIR)/docs/man - cp Makefile $(BIN_DIST_DIR)/docs/man/ -ifneq "$(strip $(XSLTPROC))" "" - cp $(MAN_PAGE).$(MAN_SECTION) $(BIN_DIST_DIR)/docs/man/ -endif +BINDIST_EXTRAS += $(MAN_PAGE).$(MAN_SECTION) +include $(TOP)/mk/bindist.mk include $(TOP)/mk/target.mk