Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
160e41ed
Commit
160e41ed
authored
Oct 27, 2007
by
Ian Lynagh
Browse files
Only build/install the man page if XSLTPROC is defined
parent
f9c199a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
160e41ed
...
...
@@ -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)
...
...
docs/man/Makefile
View file @
160e41ed
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment