projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor case-merging and identical-alternative optimisations
[ghc-hetmet.git]
/
docs
/
man
/
Makefile
diff --git
a/docs/man/Makefile
b/docs/man/Makefile
index
b659715
..
21e60e2
100644
(file)
--- a/
docs/man/Makefile
+++ b/
docs/man/Makefile
@@
-1,6
+1,8
@@
TOP = ../..
include $(TOP)/mk/boilerplate.mk
TOP = ../..
include $(TOP)/mk/boilerplate.mk
+ifneq "$(strip $(XSLTPROC))" ""
+
# The commands which should be mentioned in the man page
GHC_COMMANDS = ghc ghci
# The commands which should be mentioned in the man page
GHC_COMMANDS = ghc ghci
@@
-21,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
# 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.
# 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.
@@
-31,7
+33,8
@@
flags.xml: ../users_guide/flags.xml
echo "<!DOCTYPE sect1 [<!ENTITY ndash \"-\"> \
<!ENTITY ldquo \"\`\"> \
<!ENTITY rdquo \"'\">]>" >> $@
echo "<!DOCTYPE sect1 [<!ENTITY ndash \"-\"> \
<!ENTITY ldquo \"\`\"> \
<!ENTITY rdquo \"'\">]>" >> $@
- tail -n +2 $< >> $@
+ # "sed 1d" == "tail -n +2", but Solaris apparently rejects the latter
+ sed 1d $< >> $@
endif
endif
@@
-40,9
+43,8
@@
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)
$(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/
+endif
+
+include $(TOP)/mk/bindist.mk
include $(TOP)/mk/target.mk
include $(TOP)/mk/target.mk