example-doxygen = $(addprefix doxygen/,$(addsuffix .h,$(example-names)))
-# generate dot file
+# a makefile command that extracts the base name of a program
+get_basename = $(shell echo $(1) | $(PERL) -pi -e 's/(generated|doxygen).//g; s/\..*//g; s/_(prog|plain|toc.*)//g;')
+
+
+all: $(example-doxygen) steps.png
+
+# generate dot file
steps.dot: steps.pl
perl $< > $@
steps.png: steps.dot
@mv steps.dot.imap steps.imap
-# a makefile command that extracts the base name of a program
-get_basename = $(shell echo $(1) | $(PERL) -pi -e 's/(generated|doxygen).//g; s/\..*//g; s/_(prog|plain|toc.*)//g;')
-
-
-
-all: $(example-doxygen)
-
-
$(example-toc-prog):
@echo ================== Making $@
@cat $D/examples/$(call get_basename, $@)/*.cc \
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams