summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArun Isaac2025-01-28 00:39:20 +0000
committerArun Isaac2025-01-28 00:50:12 +0000
commit5ea1acc60b6c03181df57e715d8fcef90c36bd73 (patch)
tree6437af9ded203e5b2bc9ee4f9799646f49194115 /Makefile
parent82f92fe19489c57540b882db0c7d74d8a31ab811 (diff)
downloadravanan-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--Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 0201655..9b457de 100644
--- a/Makefile
+++ b/Makefile
@@ -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 \