X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fghc.mk;h=fe2bddd0d914fa521d5be74b54ed734d9be03cfc;hb=af199e4953c6c75488a7c62b27cddf9fac09af84;hp=9cb7172a343fbc617206a769510073a28c8f0db7;hpb=9ca114a5840d8d00320e90c047022fa2ca1fa668;p=ghc-hetmet.git diff --git a/docs/users_guide/ghc.mk b/docs/users_guide/ghc.mk index 9cb7172..fe2bddd 100644 --- a/docs/users_guide/ghc.mk +++ b/docs/users_guide/ghc.mk @@ -10,12 +10,22 @@ # # ----------------------------------------------------------------------------- -docs/users_guide_DOCBOOK_SOURCES := \ - $(wildcard docs/users_guide/*.xml) \ - $(basename $(wildcard docs/users_guide/*.xml.in)) +docs/users_guide_GENERATED_DOCBOOK_SOURCES := \ + docs/users_guide/what_glasgow_exts_does.gen.xml + +# sort remove duplicates +docs/users_guide_DOCBOOK_SOURCES := \ + $(sort $(docs/users_guide_GENERATED_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 + inplace/bin/mkUserGuidePart $@ $(eval $(call docbook,docs/users_guide,users_guide)) +$(eval $(call clean-target,docs/users_guide,gen,$(docs/users_guide_GENERATED_DOCBOOK_SOURCES))) + # 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 @@ -26,6 +36,12 @@ $(eval $(call docbook,docs/users_guide,users_guide)) 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 + html_docs/users_guide : docs/users_guide/users_guide/prof_scc.png docs/users_guide/users_guide/prof_scc.png : \ @@ -42,3 +58,11 @@ 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 +