X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fman%2FMakefile;h=7fa112d82c7dc2451975c7ae3fe56ae56f2d4f5b;hb=836cafeb3edd9c728fe4c86cf90229e1476ad14a;hp=b6597156aa3206fc7a255a3b6bc71c3a5256df49;hpb=12cc5a0f1aed9e0bbcf692235d7fcc964710d159;p=ghc-hetmet.git diff --git a/docs/man/Makefile b/docs/man/Makefile index b659715..7fa112d 100644 --- a/docs/man/Makefile +++ b/docs/man/Makefile @@ -1,6 +1,8 @@ TOP = ../.. include $(TOP)/mk/boilerplate.mk +ifneq "$(strip $(XSLTPROC))" "" + # The commands which should be mentioned in the man page GHC_COMMANDS = ghc ghci @@ -31,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 @@ -40,9 +43,13 @@ install-docs:: $(MAN_PAGE).$(MAN_SECTION) $(INSTALL_DIR) $(DESTDIR)$(mandir)/man$(MAN_SECTION) $(INSTALL_MAN) $(INSTALL_OPTS) $(MAN_PAGE).$(MAN_SECTION) $(DESTDIR)$(mandir)/man$(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 include $(TOP)/mk/target.mk