Clarify parsing infelicity.
[ghc.git] / docs / users_guide / ghc.mk
1 # -----------------------------------------------------------------------------
2 #
3 # (c) 2009 The University of Glasgow
4 #
5 # This file is part of the GHC build system.
6 #
7 # To understand how the build system works and how to modify it, see
8 # http://ghc.haskell.org/trac/ghc/wiki/Building/Architecture
9 # http://ghc.haskell.org/trac/ghc/wiki/Building/Modifying
10 #
11 # -----------------------------------------------------------------------------
12
13 docs/users_guide_GENERATED_DOCBOOK_SOURCES := \
14 docs/users_guide/users_guide.xml \
15 docs/users_guide/what_glasgow_exts_does.gen.xml
16
17 # sort remove duplicates
18 docs/users_guide_DOCBOOK_SOURCES := \
19 $(sort $(docs/users_guide_GENERATED_DOCBOOK_SOURCES) \
20 $(wildcard docs/users_guide/*.xml) \
21 $(basename $(wildcard docs/users_guide/*.xml.in)))
22
23 $(docs/users_guide_GENERATED_DOCBOOK_SOURCES): %.xml: $(mkUserGuidePart_INPLACE)
24 $(mkUserGuidePart_INPLACE) $@
25
26 $(eval $(call docbook,docs/users_guide,users_guide))
27
28 $(eval $(call clean-target,docs/users_guide,gen,$(docs/users_guide_GENERATED_DOCBOOK_SOURCES)))
29
30 html_docs/users_guide : docs/users_guide/users_guide/prof_scc.eps
31
32 docs/users_guide/users_guide/prof_scc.eps : \
33 docs/users_guide/prof_scc.eps \
34 docs/users_guide/users_guide/index.html
35 $(CP) $< $@
36 # dep. on d/u/u/index.html is to make sure that the d/u/u dir is created first
37