LLVM: Fix bug with calling tail with empty list
[ghc-hetmet.git] / docs / users_guide / ghc.mk
index 4c8dc1b..f78ebca 100644 (file)
@@ -26,6 +26,20 @@ $(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 : \
+               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)" $< $@
@@ -34,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
+