aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-24 16:11:56 -0300
committerEuAndreh <eu@euandre.org>2023-03-24 16:14:41 -0300
commitf235370d6a59f0215a12d9fb4ac4950e1c9a0716 (patch)
tree1fe2f4745c9db8be6875c1edbd5808b549c88215
parentsrc/bin/paku.in: Move "datadir" to paku.lock (diff)
downloadpackage-repository-f235370d6a59f0215a12d9fb4ac4950e1c9a0716.tar.gz
package-repository-f235370d6a59f0215a12d9fb4ac4950e1c9a0716.tar.xz
Makefile: Use debian.sentinel for better dependency tracking
-rw-r--r--.gitignore1
-rw-r--r--Makefile10
2 files changed, 8 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index dca71a7..922b93a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
/result*
/*.mk
+/*.sentinel
/tests/internet/etc/postfix/main.cf
/tests/internet/etc/dkimproxyout.conf
/tests/internet/etc/dovecot/dovecot.conf
diff --git a/Makefile b/Makefile
index 1063f9d..7218a2c 100644
--- a/Makefile
+++ b/Makefile
@@ -74,8 +74,12 @@ result result.sentinel: default.nix
debian.mk: paku.lock
paku debian > $@
-debian: debian.mk
+debian.sentinel: debian.mk
@$(MAKE) -f debian.mk
+ touch debian.sentinel
+
+debian: debian.sentinel
+
homebrew: Formula
@@ -85,7 +89,7 @@ Formula: paku.lock
touch $@
-public/debian: debian
+public/debian: debian.sentinel
mkdir -p $(@D)
rsync -avzP --delete `$(MAKE) -s -f debian.mk public-dir`/ $@/
@@ -102,7 +106,7 @@ upload: public
clean: src/bin/paku
rm -rf "`paku -C datadir`"
rm -rf \
- $(derived-assets) result* *.mk public/
+ $(derived-assets) result* *.mk *.sentinel public/
local-files = \