[project @ 2001-08-27 11:45:23 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
10 # Generating index is semi-automatic, you need to:
11
12 #    make users_guide.dvi ; make index ; make users_guide.dvi
13
14 # To work, it depends on you tweaking
15 #
16 #      lib/sgml-tools/dist/sgmltool/latex2e/mapping
17 #
18 # to instead of saying
19 #
20 # </article>      +       "\\end{document}"       +
21 #
22 # say 
23 #
24 # </article>      +       "\\InputIfFileExists{index}{}{}"
25 #                         "\\end{document}"       +
26
27 # That partially works around the problem, if nothing else.
28
29 index : users_guide.dvi
30         makeindex users_guide
31         @$(RM) $@
32         $(CP) users_guide.ind $@
33         $(RM) users_guide.dvi
34
35
36 include $(TOP)/mk/target.mk