aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-24 14:15:55 -0300
committerEuAndreh <eu@euandre.org>2023-03-24 14:17:46 -0300
commit75e43e4b0bc325cc2e2dc1f75ebdeb277acef1ba (patch)
tree59ff120c131176c164f6d76e890f87de1db41fd4 /Makefile
parentMakefile: Make "debian" target silent by default (diff)
downloadpackage-repository-75e43e4b0bc325cc2e2dc1f75ebdeb277acef1ba.tar.gz
package-repository-75e43e4b0bc325cc2e2dc1f75ebdeb277acef1ba.tar.xz
Makefile: Enable building targets directly which have sentinel aliases
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 40a5816..8d8e956 100644
--- a/Makefile
+++ b/Makefile
@@ -39,12 +39,13 @@ channel-key.sentinel: paku.lock
src/org/euandre/packages.scm: paku.lock
paku guix > src/org/euandre/packages.scm
-result-packages.sentinel: src/org/euandre/packages.scm src/org/euandre/queue.scm
+result-packages result-packages.sentinel: \
+ src/org/euandre/packages.scm src/org/euandre/queue.scm
rm -f result-packages
guix build -r result-packages -v3 -Lsrc/ -K \
-f src/org/euandre/packages.scm \
-f src/org/euandre/queue.scm
- touch $@
+ touch result-packages.sentinel
local-files = \
/etc/postfix/master.cf \
@@ -59,21 +60,22 @@ internet-files = \
result-services.sentinel: result-local.sentinel result-internet.sentinel
touch $@
-result-local.sentinel: result-packages.sentinel
+result-local result-local.sentinel: result-packages.sentinel
rm -f result-local
guix system -v3 -Lsrc/ -K -r result-local build tests/local/system.scm
for f in $(local-files); do \
diff -U5 --color=always result-local$$f tests/local$$f; \
done
- touch $@
+ touch result-local.sentinel
-result-internet.sentinel: result-packages.sentinel $(test-config-files)
+result-internet result-internet.sentinel: \
+ result-packages.sentinel $(test-config-files)
rm -f result-internet
guix system -v3 -Lsrc/ -K -r result-internet build tests/internet/system.scm
for f in $(internet-files); do \
diff -U5 --color=always result-internet$$f tests/internet$$f; \
done
- touch $@
+ touch result-internet.sentinel
nix: default.nix result.sentinel
@@ -81,9 +83,9 @@ nix: default.nix result.sentinel
default.nix: paku.lock
paku nix > $@
-result.sentinel: default.nix
+result result.sentinel: default.nix
nix-build build.nix
- touch $@
+ touch result.sentinel
debian.mk: paku.lock