summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2021-07-04 18:52:38 +0530
committerArun Isaac2021-07-04 19:38:23 +0530
commitb27749fef5e6886553050efdf85715a2428c43c8 (patch)
treeb83446d89b95a3c52a434d7bec89af9d26f071e2
parent53255a4d269a7e56626cba9b6c21b1c2d95e6c39 (diff)
downloadccwl-b27749fef5e6886553050efdf85715a2428c43c8.tar.gz
ccwl-b27749fef5e6886553050efdf85715a2428c43c8.tar.lz
ccwl-b27749fef5e6886553050efdf85715a2428c43c8.zip
Makefile: Clean only directories in clean-local.
* Makefile.am (CLEANFILES): Add .depends, website/index.html. (CLEAN_DIRECTORIES): Add doc/ccwl.html, website/manual. (clean-local): Delete $(CLEAN_DIRECTORIES) only.
-rw-r--r--Makefile.am10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index afe3f34..b7be9bb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -89,6 +89,7 @@ EXTRA_DIST += \
# Build documentation
+CLEANFILES += .depends
.depends: build-aux/find-dependencies.scm doc/ccwl.skb
$(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE) --no-auto-compile $< > $@
@@ -116,6 +117,7 @@ info-local: doc/ccwl.info
html-local: doc/ccwl.html
CLEANFILES += doc/ccwl.info doc/skribilo.go
+CLEAN_DIRECTORIES = doc/ccwl.html
doc/ccwl.info: doc/ccwl.skb doc/skribilo.go $(DOC_IMAGES) $(DOC_OTHER_DEPENDENCIES)
$(SKRIBILO_GEN)$(top_builddir)/pre-inst-env $(SKRIBILO) -t info $< -o $@
@@ -151,6 +153,8 @@ uninstall-local:
website: website/index.html website/manual/dev/en
+CLEANFILES += website/index.html
+CLEAN_DIRECTORIES += website/manual
website/index.html: README.org
$(EMACS_GEN)$(EMACS) -Q --script build-aux/build-home-page.el
@@ -159,7 +163,7 @@ website/manual/dev/en: doc/ccwl.html
$(MKDIR_P) $(dir $@)
cp -vr $< $@
-# The clean target depends on clean-local. Use clean-local to clean
-# up several artifacts not handled automatically by automake.
+# The clean target depends on clean-local. Use clean-local to clean up
+# several directories. Directories cannot be specified in CLEANFILES.
clean-local:
- rm -rf .depends website/index.html website/manual
+ rm -rf $(CLEAN_DIRECTORIES)