diff options
author | Ian Lynagh <igloo@earth.li> | 2007-10-27 12:21:55 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2007-10-27 12:21:55 +0000 |
commit | 160e41ed98615c633be9a7c27ec2f9ed768dae7f (patch) | |
tree | 0f2ffeaa830f560c64dadf17f3c00b664003af81 /docs/man | |
parent | f9c199a1a2865bdb9e8fb318a48058d7e4bfaf64 (diff) | |
download | haskell-160e41ed98615c633be9a7c27ec2f9ed768dae7f.tar.gz |
Only build/install the man page if XSLTPROC is defined
Diffstat (limited to 'docs/man')
-rw-r--r-- | docs/man/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/man/Makefile b/docs/man/Makefile index b6597156aa..155767e52d 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 @@ -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 |