~ubuntu-branches/ubuntu/precise/ghc/precise

« back to all changes in this revision

Viewing changes to docs/users_guide/ghc.mk

  • Committer: Bazaar Package Importer
  • Author(s): Joachim Breitner
  • Date: 2011-01-17 12:49:24 UTC
  • Revision ID: james.westby@ubuntu.com-20110117124924-do1pym1jlf5o636m
Tags: upstream-7.0.1
ImportĀ upstreamĀ versionĀ 7.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
 
9
#      http://hackage.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: inplace/bin/mkUserGuidePart
 
24
        inplace/bin/mkUserGuidePart $@
 
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.png
 
31
 
 
32
docs/users_guide/users_guide/prof_scc.png : \
 
33
                docs/users_guide/prof_scc.png \
 
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