From 8f2b8395367e67aeaf60bf00e47f3421073e3fa3 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 2 Nov 2021 02:12:00 +0530 Subject: Makefile: Do not distribute *.out files. The *.out files are generated by running ccwl workflows. They need not be distributed. * build-aux/find-dependencies.scm (find-dependencies): Return *.out files and *.scm files as different kinds of dependencies. Output *.out and *.scm files separately as DOC_OUT and DOC_SCM instead of together as DOC_OTHER. * Makefile.am (doc/ccwl.info, doc/ccwl.html): Depend on DOC_SCM and DOC_OUT instead of DOC_OTHER. (EXTRA_DIST): Remove DOT_OTHER. Add DOC_SCM. --- build-aux/find-dependencies.scm | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'build-aux') diff --git a/build-aux/find-dependencies.scm b/build-aux/find-dependencies.scm index 5ced7fb..4cd20c5 100644 --- a/build-aux/find-dependencies.scm +++ b/build-aux/find-dependencies.scm @@ -50,12 +50,12 @@ dependency is of the form (tag . file). tag may either be the symbol args)) (('source args ...) (apply (lambda* (#:key file #:allow-other-keys) - `((other . ,file))) + `((out . ,file))) args)) (('scheme-source file) - `((other . ,file))) + `((scm . ,file))) (('source-ref file _ ...) - `((other . ,file))) + `((scm . ,file))) ((elements ...) (append-map find-dependencies elements)) (atom '()))) @@ -69,9 +69,15 @@ dependency is of the form (tag . file). tag may either be the symbol (_ #f)) dependencies) " ")) - (format #t "DOC_OTHER = ~a~%" + (format #t "DOC_SCM = ~a~%" (string-join (filter-map (match-lambda - (('other . file) file) + (('scm . file) file) + (_ #f)) + dependencies) + " ")) + (format #t "DOC_OUT = ~a~%" + (string-join (filter-map (match-lambda + (('out . file) file) (_ #f)) dependencies) " "))) -- cgit v1.2.3