aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-24 14:48:00 -0300
committerEuAndreh <eu@euandre.org>2023-03-24 14:48:03 -0300
commit1dd95f5355481448a86ea7d10e6f470492ef2c6a (patch)
tree4df726fd740629f251fbd090e2dfcc6b18555706 /Makefile
parentMakefile: Split Guix tests from build (diff)
downloadpackage-repository-1dd95f5355481448a86ea7d10e6f470492ef2c6a.tar.gz
package-repository-1dd95f5355481448a86ea7d10e6f470492ef2c6a.tar.xz
src/bin/paku.in: Emit Makefile for generating $NAME.key for Guix channel
Instead of doing it inline in the Makefile with clever Perl one-liners. BONUS: add missing ".POSIX:" to the debian.mk file.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index c63bb41..e63f1bd 100644
--- a/Makefile
+++ b/Makefile
@@ -28,14 +28,13 @@ paku.lock: src/bin/paku Makefile
touch $@
-guix: src/org/euandre/packages.scm channel-key.sentinel \
+guix: src/org/euandre/packages.scm guix.mk \
result-packages.sentinel result-services.sentinel
+ @$(MAKE) -f guix.mk
+
+guix.mk: paku.lock
+ paku guix-channel-key > $@
-channel-key.sentinel: paku.lock
- F="$$( perl -MJSON -0777 -E 'say $${decode_json <>}{maintainer}{name}' < paku.lock).key"; \
- ID="$$(perl -MJSON -0777 -E 'say $${decode_json <>}{maintainer}{email}' < paku.lock)"; \
- gpg --armour --export "$$ID" > "$$F"
- touch $@
src/org/euandre/packages.scm: paku.lock
paku guix > src/org/euandre/packages.scm
@@ -101,8 +100,7 @@ upload: public
clean:
rm -rf \
- $(derived-assets) result* .paku/ public/ debian.mk \
- *.sentinel \
+ $(derived-assets) result* *.mk .paku/ public/ \
local-files = \