From 5ea1acc60b6c03181df57e715d8fcef90c36bd73 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 28 Jan 2025 00:39:20 +0000 Subject: 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. --- Makefile | 14 +++++++------- 1 file 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 +# Copyright © 2024, 2025 Arun Isaac # # 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 \ -- cgit v1.2.3