Commit 160e41ed authored by Ian Lynagh's avatar Ian Lynagh

Only build/install the man page if XSLTPROC is defined

parent f9c199a1
......@@ -331,6 +331,8 @@ binary-dist::
echo "GhcHasReadline = $(GhcHasReadline)" >> $(VARFILE)
echo "BootingFromHc = $(BootingFromHc)" >> $(VARFILE)
echo "XMLDocWays = $(XMLDocWays)" >> $(VARFILE)
# We won't actually use xsltproc, but we need to know if it's "" or not
echo "XSLTPROC = $(XSLTPROC)" >> $(VARFILE)
echo "TARGETPLATFORM = $(TARGETPLATFORM)" >> $(VARFILE)
echo "HADDOCK_DOCS = $(HADDOCK_DOCS)" >> $(VARFILE)
......
TOP = ../..
include $(TOP)/mk/boilerplate.mk
ifneq "$(strip $(XSLTPROC))" ""
# The commands which should be mentioned in the man page
GHC_COMMANDS = ghc ghci
......@@ -40,9 +42,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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment