From: Simon Marlow Date: Thu, 25 Feb 2010 13:16:16 +0000 (+0000) Subject: hack to make the docs build again in a lndir build tree (see comments) X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=b1b95df69d97f279018b08d9e7c672318055bac4 hack to make the docs build again in a lndir build tree (see comments) --- diff --git a/docs/users_guide/ghc.mk b/docs/users_guide/ghc.mk index 9cb7172..f78ebca 100644 --- a/docs/users_guide/ghc.mk +++ b/docs/users_guide/ghc.mk @@ -26,6 +26,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 +48,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 +