diff options
author | EuAndreh <eu@euandre.org> | 2023-03-20 14:37:34 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-21 07:34:35 -0300 |
commit | 58167062f674cbc5ac97991a921a1ac92118101c (patch) | |
tree | d39312ce189e459a46b0d1d41ffedf1e1c1063fa /Makefile | |
parent | queue.scm: Remove (mail-in-home? ...) option from Postfix and Dovecot (diff) | |
download | package-repository-58167062f674cbc5ac97991a921a1ac92118101c.tar.gz package-repository-58167062f674cbc5ac97991a921a1ac92118101c.tar.xz |
Big revamp of paku(1): now in Perl, genating Debian packages
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 66 |
1 files changed, 47 insertions, 19 deletions
@@ -12,7 +12,8 @@ -all: EuAndreh.key guix nix +all: EuAndreh.key guix nix debian + test-config-files = \ @@ -23,10 +24,11 @@ test-config-files = \ derived-assets = \ $(test-config-files) \ -guix: guix-packages guix-services +guix: result-packages result-services -guix-packages: - guix build -v3 -Lsrc/ -K \ +result-packages: + perl src/bin/paku guix > src/org/euandre/packages.scm + guix build -r $@ -v3 -Lsrc/ -K \ -f src/org/euandre/packages.scm \ -f src/org/euandre/queue.scm \ @@ -40,36 +42,62 @@ internet-files = \ /etc/dkimproxyout.conf \ /etc/dovecot/dovecot.conf \ -guix-services-local: guix-packages - rm -f result-local - guix system -v3 -Lsrc/ -K -r result-local build tests/local/system.scm +result-local: result-packages + guix system -v3 -Lsrc/ -K -r $@ build tests/local/system.scm for f in $(local-files); do \ diff -U5 --color=always result-local$$f tests/local$$f; \ done -guix-services-internet: guix-packages $(test-config-files) - rm -f result-internet - guix system -v3 -Lsrc/ -K -r result-internet build tests/internet/system.scm +result-internet: result-packages + $(MAKE) $(test-config-files) + guix system -v3 -Lsrc/ -K -r $@ build tests/internet/system.scm for f in $(internet-files); do \ diff -U5 --color=always result-internet$$f tests/internet$$f; \ done -guix-services: guix-services-local guix-services-internet +result-services: result-local result-internet + + +nix: result + +default.nix: paku.lock + perl src/bin/paku nix > $@ -nix: +result: nix-build build.nix -refresh: - sh scripts/paku -rg +debian.mk: paku.lock + perl src/bin/paku makefile > $@ + +debian: debian.mk + $(MAKE) -f debian.mk + + +public/debian: debian.mk + mkdir -p $(@D) + rsync -avzP --delete `$(MAKE) -s -f debian.mk public-dir`/ $@/ + +public/paku.html: paku.lock src/bin/paku + mkdir -p $(@D) + perl src/bin/paku html > $@ + +public: public/debian public/paku.html + + +upload: public + rsync -avzP --delete public/ euandre.org:/srv/www/s/package-repository/ + +HTTP-REMOTE = 'https://euandre.org/s/package-repository' +check-ubuntu: + sh tests/vm-check.sh -x -t deb -H ubuntu-x86_64-headless -r $(HTTP-REMOTE) + +check: check-ubuntu -check: clean: rm -rf \ - $(derived-assets) result* .paku/ deb/ - -public: + $(derived-assets) result* .paku/ public/ debian.mk -EuAndreh.key: +EuAndreh.key: paku.lock gpg --armour --export eu@euandre.org > $@ |