install :: html dvi info
endif
-# These files are just concatenated to produce the complete document, in the
-# same order as they are given below.
+SGML_DOC = users_guide
-SGML_SRCS = \
- user.sgml \
- intro.sgml \
- 3-02-notes.sgml \
- using.sgml \
- runtime_control.sgml \
- profiling.sgml \
- debugging.sgml \
- sooner.sgml \
- lang.sgml \
- glasgow_exts.sgml \
- parallel.sgml \
- vs_haskell.sgml \
- libraries.sgml \
- posix.sgml \
- libmisc.sgml \
- gone_wrong.sgml \
- utils.sgml \
- end.sgml
+# Generating index is semi-automatic, you need to:
+#
+# make users_guide.dvi ; make index ; make users_guide.dvi
+#
+# To work, it depends on you tweaking
+#
+# lib/sgml-tools/dist/sgmltool/latex2e/mapping
+#
+# to instead of saying
+#
+# </article> + "\\end{document}" +
+#
+# say
+#
+# </article> + "\\InputIfFileExists{index}{}{}"
+# "\\end{document}" +
+#
+# That partially works around the problem, if nothing else.
+#
+index : users_guide.dvi
+ makeindex users_guide
+ @$(RM) $@
+ $(CP) users_guide.ind $@
+ $(RM) users_guide.dvi
-SGML_DOC = users_guide
include $(TOP)/mk/target.mk