From 0629e0d5a4234e90e7d34b70cc8bea0c21943736 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 5 Nov 2021 16:54:47 +0530 Subject: Makefile: Create doc directory before populating it. * Makefile.am (doc/.dirstamp): New target. ($(DOC_IMAGES:.png=.dot), $(DOC_OUT)): Depend on doc/.dirstamp. (CLEAN_DIRECTORIES): Add doc/.dirstamp. --- Makefile.am | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 $< > $@ -- cgit v1.2.3