aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorJuhani Krekelä2025-02-16 01:49:38 +0200
committerWolfgang Müller2025-02-16 12:40:48 +0100
commit1861d0893353270b6e3dc11ee9e8a79304d8a9cb (patch)
tree5705cdf7de7e09715e1c6c155031dd3a5cbc6f56 /Makefile
parente79bd1baca0d8763b9a58fda686abf7fe36fe108 (diff)
downloadlater-1861d0893353270b6e3dc11ee9e8a79304d8a9cb.tar.gz
Track dependencies in the Makefile
Previously "make install" would install a stale later.pyz if it existed. Mark all of the files under src/ as dependencies to later.pyz to have it be regenerated if any of them are modified.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2d947c2..562ce45 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,12 @@
PREFIX ?= /usr/local
+SRC != find src -type f
+
install: later.pyz later.1
install -D -m 755 later.pyz '${DESTDIR}${PREFIX}/bin/later'
install -D -m 644 -t '${DESTDIR}${PREFIX}/share/man/man1' later.1
-later.pyz:
+later.pyz: $(SRC)
python -m zipapp -p "/usr/bin/env python3" -o later.pyz src/
clean: