X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fghc.mk;h=f78ebca2f34ad5dc96704f35325620501c3978c3;hb=7dbc1d8f8fb650162e01f6eab8dabaf1f53c819d;hp=492df2d65e2480d9c4d80c192f2c54713c6a6f3c;hpb=7e9d402750416618b449cdb5126b914ce5f2fd0c;p=ghc-hetmet.git diff --git a/docs/users_guide/ghc.mk b/docs/users_guide/ghc.mk index 492df2d..f78ebca 100644 --- a/docs/users_guide/ghc.mk +++ b/docs/users_guide/ghc.mk @@ -23,11 +23,36 @@ $(eval $(call docbook,docs/users_guide,users_guide)) # tree. This is a horrible hack, but I can't find a better way to do # it --SDM (2009-05-11) -build_ug_book = $(TOP)/docs/users_guide/ug-book.xml +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 : \ + docs/users_guide/prof_scc.png \ + docs/users_guide/users_guide/index.html + $(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) $< $@ -docs/users_guide/users_guide.pdf: $(src_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 +