From 0aaa24217d39a87636003a43719379f81e556e40 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 5 Nov 2021 12:26:19 +0530 Subject: Makefile: Distinguish DOC_OTHER from DOC_OUT. DOC_OTHER includes dependencies that are neither scm files nor out files, but are primary sources required for the build. * Makefile.am (EXTRA_DIST): Add DOC_OTHER. (doc/ccwl.info, doc/ccwl.html): Depend on DOC_OTHER. * build-aux/find-dependencies.scm: Output DOC_OTHER. (find-dependencies): Classify source forms as type 'out or type 'other based on extension. --- build-aux/find-dependencies.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'build-aux/find-dependencies.scm') diff --git a/build-aux/find-dependencies.scm b/build-aux/find-dependencies.scm index 4cd20c5..d40a389 100644 --- a/build-aux/find-dependencies.scm +++ b/build-aux/find-dependencies.scm @@ -50,7 +50,9 @@ dependency is of the form (tag . file). tag may either be the symbol args)) (('source args ...) (apply (lambda* (#:key file #:allow-other-keys) - `((out . ,file))) + (if (string-suffix? ".out" file) + `((out . ,file)) + `((other . ,file)))) args)) (('scheme-source file) `((scm . ,file))) @@ -80,4 +82,10 @@ dependency is of the form (tag . file). tag may either be the symbol (('out . file) file) (_ #f)) dependencies) + " ")) + (format #t "DOC_OTHER = ~a~%" + (string-join (filter-map (match-lambda + (('other . file) file) + (_ #f)) + dependencies) " "))) -- cgit v1.2.3