diff options
author | Arun Isaac | 2025-01-28 00:39:20 +0000 |
---|---|---|
committer | Arun Isaac | 2025-01-28 00:50:12 +0000 |
commit | 5ea1acc60b6c03181df57e715d8fcef90c36bd73 (patch) | |
tree | 6437af9ded203e5b2bc9ee4f9799646f49194115 /Makefile | |
parent | 82f92fe19489c57540b882db0c7d74d8a31ab811 (diff) | |
download | ravanan-5ea1acc60b6c03181df57e715d8fcef90c36bd73.tar.gz ravanan-5ea1acc60b6c03181df57e715d8fcef90c36bd73.tar.lz ravanan-5ea1acc60b6c03181df57e715d8fcef90c36bd73.zip |
Makefile: Treat config.scm distinctly from sources.
config.scm is a generated source file. Treat it the same as a
hand-written source file creates problems when generating release
tarballs.
* Makefile (sources): Remove $(config_file).
(objects): Add $(config_file:.scm=.go).
(install): Depend on $(config_file) and install it.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,5 +1,5 @@ # ravanan --- High-reproducibility CWL runner powered by Guix -# Copyright © 2024 Arun Isaac <arunisaac@systemreboot.net> +# Copyright © 2024, 2025 Arun Isaac <arunisaac@systemreboot.net> # # This file is part of ravanan. # @@ -33,10 +33,10 @@ guile_effective_version = 3.0 top_level_module_dir = $(project) config_file = $(top_level_module_dir)/config.scm -sources = $(wildcard $(top_level_module_dir)/*.scm) \ - $(wildcard $(top_level_module_dir)/work/*.scm) \ - $(config_file) -objects = $(sources:.scm=.go) +sources = $(filter-out $(config_file), \ + $(wildcard $(top_level_module_dir)/*.scm) \ + $(wildcard $(top_level_module_dir)/work/*.scm)) +objects = $(sources:.scm=.go) $(config_file:.scm=.go) scripts = $(wildcard bin/*) tests = $(wildcard tests/*.scm) $(wildcard tests/work/*.scm) @@ -58,9 +58,9 @@ check: $(GUILE) --no-auto-compile -L . $$test; \ done -install: $(sources) $(objects) $(scripts) +install: $(sources) $(config_file) $(objects) $(scripts) install -D $(scripts) --target-directory $(bindir) - for source in $(sources); do \ + for source in $(sources) $(config_file); do \ install -D $$source $(scmdir)/$$source; \ done for object in $(objects); do \ |