aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d9e9eba..2d947c2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,16 @@
PREFIX ?= /usr/local
-install: later later.1
- install -D -m 755 -t '${DESTDIR}${PREFIX}/bin' later
+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
-.PHONY: install
+later.pyz:
+ python -m zipapp -p "/usr/bin/env python3" -o later.pyz src/
+
+clean:
+ rm -f later.pyz
+
+test:
+ pytest -q
+
+.PHONY: install clean test