summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 614e679..9098334 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -100,9 +100,15 @@ EXTRA_DIST += \
include .depends
-CLEANFILES += $(DOC_SCM:.scm=.cwl) $(DOC_IMAGES) $(DOC_IMAGES:.png=.dot) $(DOC_OUT)
+CLEANFILES += doc/.dirstamp $(DOC_SCM:.scm=.cwl) $(DOC_IMAGES) $(DOC_IMAGES:.png=.dot) $(DOC_OUT)
CLEAN_DIRECTORIES = doc/cwl-output
+doc/.dirstamp:
+ @$(MKDIR_P) $(dir $@)
+ @: > $@
+
+$(DOC_IMAGES:.png=.dot) $(DOC_OUT): doc/.dirstamp
+
%.cwl: %.scm
$(CCWL_GEN)$(builddir)/pre-inst-env ccwl compile $< > $@