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