From e49d8fec2fa5fa69bf93b76e921e9a1eeff8f1af Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 4 Jul 2021 19:00:48 +0530 Subject: Makefile: Include .depends with automake. * bootstrap.sh: Generate .depends. * Makefile.am: Include .depends with automake, not with make. (.depends): Delete rule. (doc/ccwl.html, doc/ccwl.info): Use DOC_OTHER instead of DOC_OTHER_DEPENDENCIES. (CLEANFILES): Remove .depends. * build-aux/find-dependencies.scm: Output DOC_OTHER instead of DOC_OTHER_DEPENDENCIES. _DEPENDENCIES variables are special in automake. --- Makefile.am | 12 +++--------- bootstrap.sh | 1 + build-aux/find-dependencies.scm | 2 +- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Makefile.am b/Makefile.am index b7be9bb..96a0662 100644 --- a/Makefile.am +++ b/Makefile.am @@ -89,14 +89,8 @@ EXTRA_DIST += \ # Build documentation -CLEANFILES += .depends +include .depends -.depends: build-aux/find-dependencies.scm doc/ccwl.skb - $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE) --no-auto-compile $< > $@ - -# We prefix with - so that automake does not fail when .depends is -# missing. --include .depends CLEANFILES += doc/*.cwl doc/%.dot doc/*.svg %.cwl: %.scm @@ -119,10 +113,10 @@ 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) +doc/ccwl.info: doc/ccwl.skb doc/skribilo.go $(DOC_IMAGES) $(DOC_OTHER) $(SKRIBILO_GEN)$(top_builddir)/pre-inst-env $(SKRIBILO) -t info $< -o $@ -doc/ccwl.html: doc/ccwl.skb doc/skribilo.go $(DOC_IMAGES) $(DOC_OTHER_DEPENDENCIES) +doc/ccwl.html: doc/ccwl.skb doc/skribilo.go $(DOC_IMAGES) $(DOC_OTHER) rm -rf $@ $(MKDIR_P) $@ $(SKRIBILO_GEN)$(top_builddir)/pre-inst-env $(SKRIBILO) -t html $< -o $@/index.html diff --git a/bootstrap.sh b/bootstrap.sh index 1e8f2fb..cc651f2 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -18,4 +18,5 @@ # You should have received a copy of the GNU General Public License # along with ccwl. If not, see . +guile --no-auto-compile build-aux/find-dependencies.scm > .depends autoreconf --verbose --install --force diff --git a/build-aux/find-dependencies.scm b/build-aux/find-dependencies.scm index fb68e9c..5ced7fb 100644 --- a/build-aux/find-dependencies.scm +++ b/build-aux/find-dependencies.scm @@ -69,7 +69,7 @@ dependency is of the form (tag . file). tag may either be the symbol (_ #f)) dependencies) " ")) - (format #t "DOC_OTHER_DEPENDENCIES = ~a~%" + (format #t "DOC_OTHER = ~a~%" (string-join (filter-map (match-lambda (('other . file) file) (_ #f)) -- cgit v1.2.3