X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fghc.mk;h=5f817757ced64e1b4da5f79b8758af0d2ae49153;hb=4e7bbe99d475acc47fed45124bf748f3e258a702;hp=9334784c6d07134168bcd5f5eaa857522a009045;hpb=ab90e5fa171913fe777b2b6909030e3967e72bc6;p=ghc-hetmet.git diff --git a/docs/users_guide/ghc.mk b/docs/users_guide/ghc.mk index 9334784..5f81775 100644 --- a/docs/users_guide/ghc.mk +++ b/docs/users_guide/ghc.mk @@ -11,6 +11,7 @@ # ----------------------------------------------------------------------------- docs/users_guide_GENERATED_DOCBOOK_SOURCES := \ + docs/users_guide/users_guide.xml \ docs/users_guide/what_glasgow_exts_does.gen.xml # sort remove duplicates @@ -19,26 +20,12 @@ docs/users_guide_DOCBOOK_SOURCES := \ $(wildcard docs/users_guide/*.xml) \ $(basename $(wildcard docs/users_guide/*.xml.in))) -$(docs/users_guide_GENERATED_DOCBOOK_SOURCES): %.gen.xml: inplace/bin/mkUserGuidePart +$(docs/users_guide_GENERATED_DOCBOOK_SOURCES): %.xml: inplace/bin/mkUserGuidePart inplace/bin/mkUserGuidePart $@ $(eval $(call docbook,docs/users_guide,users_guide)) -# Hack: dblatex normalises the name of the input file using -# os.path.realpath, which means that if we're in a linked build tree, -# it won't be able to find ug-book.xml which is in the build tree but -# not in the source tree. Hence, we copy ug-book.xml to the source -# tree. This is a horrible hack, but I can't find a better way to do -# it --SDM (2009-05-11) - -build_ug_book = docs/users_guide/ug-book.xml -src_ug_book = $(dir $(realpath $(dir $(build_ug_book))/ug-book.xml.in))ug-book.xml - -# ... and similarly for ug-ent.xml, which is now generated by configure from -# ug-ent.xml.in --SDM (2010-02-25) - -build_ug_ent = docs/users_guide/ug-ent.xml -src_ug_ent = $(dir $(realpath $(dir $(build_ug_ent))/ug-ent.xml.in))ug-ent.xml +$(eval $(call clean-target,docs/users_guide,gen,$(docs/users_guide_GENERATED_DOCBOOK_SOURCES))) html_docs/users_guide : docs/users_guide/users_guide/prof_scc.png @@ -48,19 +35,3 @@ docs/users_guide/users_guide/prof_scc.png : \ $(CP) $< $@ # dep. on d/u/u/index.html is to make sure that the d/u/u dir is created first -ifneq "$(build_ug_book)" "$(src_ug_book)" -$(src_ug_book) : $(build_ug_book) - "$(CP)" $< $@ -ifneq "$(BINDIST)" "YES" -docs/users_guide/users_guide.pdf docs/users_guide/users_guide.ps: $(src_ug_book) -endif -endif - -ifneq "$(build_ug_ent)" "$(src_ug_ent)" -$(src_ug_ent) : $(build_ug_ent) - "$(CP)" $< $@ -ifneq "$(BINDIST)" "YES" -docs/users_guide/users_guide.pdf docs/users_guide/users_guide.ps: $(src_ug_ent) -endif -endif -