aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2d947c2..89997db 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,14 @@
PREFIX ?= /usr/local
+SRC != find src -type f
+
+all: later.pyz
+
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:
@@ -13,4 +17,4 @@ clean:
test:
pytest -q
-.PHONY: install clean test
+.PHONY: all install clean test