From b27749fef5e6886553050efdf85715a2428c43c8 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 4 Jul 2021 18:52:38 +0530 Subject: 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. --- Makefile.am | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile.am') 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) -- cgit v1.2.3