Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
7e9d4027
Commit
7e9d4027
authored
May 11, 2009
by
Simon Marlow
Browse files
Hack to make the user's guide build in a linked build tree
See comment for details
parent
61ef1764
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/users_guide/ghc.mk
View file @
7e9d4027
...
...
@@ -16,3 +16,18 @@ docs/users_guide_DOCBOOK_SOURCES := \
$(eval
$(call
docbook,docs/users_guide,users_guide))
# Hack: dblatex normalises the name of the input file using
# os.path.realpath, which means that if we're in a linked build tree,
# it won't be able to find ug-book.xml which is in the build tree but
# not in the source tree. Hence, we copy ug-book.xml to the source
# tree. This is a horrible hack, but I can't find a better way to do
# it --SDM (2009-05-11)
build_ug_book
=
$(TOP)
/docs/users_guide/ug-book.xml
src_ug_book
=
$(
dir
$(
realpath
$(
dir
$(build_ug_book)
)
/ug-book.xml.in
))
ug-book.xml
ifneq
"$(build_ug_book)" "$(src_ug_book)"
$(src_ug_book)
:
$(build_ug_book)
$(CP)
$<
$@
docs/users_guide/users_guide.pdf
:
$(src_ug_book)
endif
Write
Preview
Supports
Markdown
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