[project @ 2002-07-03 11:07:58 by simonmar]
[ghc-hetmet.git] / ghc / docs / users_guide / Makefile
1 TOP = ../..
2 include $(TOP)/mk/boilerplate.mk
3
4 SGML_DOC = users_guide
5 INSTALL_SGML_DOC = users_guide
6
7 # Generating index is semi-automatic, you need to:
8
9 #    make users_guide.dvi ; make index ; make users_guide.dvi
10
11 # To work, it depends on you tweaking
12 #
13 #      lib/sgml-tools/dist/sgmltool/latex2e/mapping
14 #
15 # to instead of saying
16 #
17 # </article>      +       "\\end{document}"       +
18 #
19 # say 
20 #
21 # </article>      +       "\\InputIfFileExists{index}{}{}"
22 #                         "\\end{document}"       +
23
24 # That partially works around the problem, if nothing else.
25
26 index : users_guide.dvi
27         makeindex users_guide
28         @$(RM) $@
29         $(CP) users_guide.ind $@
30         $(RM) users_guide.dvi
31
32
33 include $(TOP)/mk/target.mk