hack to make the docs build again in a lndir build tree (see comments)
authorSimon Marlow <marlowsd@gmail.com>
Thu, 25 Feb 2010 13:16:16 +0000 (13:16 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 25 Feb 2010 13:16:16 +0000 (13:16 +0000)
docs/users_guide/ghc.mk

index 9cb7172..f78ebca 100644 (file)
@@ -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
+