summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/users_guide/ghc.mk8
-rw-r--r--docs/users_guide/profiling.xml2
2 files changed, 9 insertions, 1 deletions
diff --git a/docs/users_guide/ghc.mk b/docs/users_guide/ghc.mk
index 4c8dc1b507..9cb7172a34 100644
--- a/docs/users_guide/ghc.mk
+++ b/docs/users_guide/ghc.mk
@@ -26,6 +26,14 @@ $(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
+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)" $< $@
diff --git a/docs/users_guide/profiling.xml b/docs/users_guide/profiling.xml
index 0138e57d81..4d6e835c25 100644
--- a/docs/users_guide/profiling.xml
+++ b/docs/users_guide/profiling.xml
@@ -280,7 +280,7 @@ main = do let xs = {-# SCC "X" #-} [1..1000000]
<para>which gives this heap profile when run:</para>
- <imagedata fileref="prof_scc"/>
+ <imagedata fileref="prof_scc.png"/>
</sect2>