X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdocs%2Fusers_guide%2FMakefile;h=a45ac788c8131b3d27575a431d406c72e40243da;hb=1f8696706d5adf013a8a28ca4ac23f592665124a;hp=7c67def91f8e4b1e618497caba1b733afc0765a3;hpb=1fb1ab5d53a09607e7f6d2450806760688396387;p=ghc-hetmet.git diff --git a/ghc/docs/users_guide/Makefile b/ghc/docs/users_guide/Makefile index 7c67def..a45ac78 100644 --- a/ghc/docs/users_guide/Makefile +++ b/ghc/docs/users_guide/Makefile @@ -1,6 +1,36 @@ TOP = ../.. include $(TOP)/mk/boilerplate.mk -DOC_SRCS = profiling.lit user.lit +ifeq "$(BIN_DIST)" "1" +install :: html dvi info +endif + +SGML_DOC = users_guide + +# 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 +# +# + "\\end{document}" + +# +# say +# +# + "\\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 + include $(TOP)/mk/target.mk