diff options
author | Arun Isaac | 2021-11-05 16:54:47 +0530 |
---|---|---|
committer | Arun Isaac | 2021-11-05 17:28:48 +0530 |
commit | 0629e0d5a4234e90e7d34b70cc8bea0c21943736 (patch) | |
tree | cfcf0915609d3a93ae7fabef427042a65f5cb615 | |
parent | c5aaf4befd2ed89299010eccb4c51464fcaa99d0 (diff) | |
download | ccwl-0629e0d5a4234e90e7d34b70cc8bea0c21943736.tar.gz ccwl-0629e0d5a4234e90e7d34b70cc8bea0c21943736.tar.lz ccwl-0629e0d5a4234e90e7d34b70cc8bea0c21943736.zip |
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.
-rw-r--r-- | Makefile.am | 8 |
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 $< > $@ |