Makefile: Add target `dist`.
authorHartmut Goebel <h.goebel@crazy-compilers.com>
Tue, 17 Mar 2020 11:29:04 +0100
changeset 48 9e69f3056f4b
parent 47 7588a2e65285
child 49 6e781b10c5a4
Makefile: Add target `dist`.
Makefile
--- a/Makefile	Tue Mar 17 11:13:21 2020 +0100
+++ b/Makefile	Tue Mar 17 11:29:04 2020 +0100
@@ -1,5 +1,6 @@
 YML_PATH=
 YML2C=yml2c
+PKGVER=$(shell python setup.py -V)
 
 all: homepage
 
@@ -19,3 +20,9 @@
 clean:
 	rm -f *.html *.pyc *.pyo */*.pyc */*.pyo
 	rm -rf *.egg-info
+
+
+dist: dist/yml-$(PKGVER).tar.gz
+
+dist/yml-$(PKGVER).tar.gz:
+	python setup.py sdist