From 1dd95f5355481448a86ea7d10e6f470492ef2c6a Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 24 Mar 2023 14:48:00 -0300 Subject: 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. --- Makefile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'Makefile') 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 = \ -- cgit v1.2.3