Fix the prof_scc.png image in the profiling section (#3694)
authorSimon Marlow <marlowsd@gmail.com>
Mon, 30 Nov 2009 13:27:03 +0000 (13:27 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 30 Nov 2009 13:27:03 +0000 (13:27 +0000)
docs/users_guide/ghc.mk
docs/users_guide/profiling.xml

index 4c8dc1b..9cb7172 100644 (file)
@@ -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)" $< $@
index 0138e57..4d6e835 100644 (file)
@@ -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>