Makefile
changeset 62 00a196f8d14a
parent 60 b19d0a86651b
child 65 d659b8c2ed22
--- a/Makefile	Thu Mar 19 14:54:23 2020 +0100
+++ b/Makefile	Thu Mar 19 16:45:02 2020 +0100
@@ -1,21 +1,21 @@
+YML_PATH  =
+DEBVER   := 1
 PYTHON   := python3
-YML_PATH  =
-YML2C     = yml2c
-DEBVER   := 1
 PKGVER    = $(shell $(PYTHON) setup.py -V)
 TWINE    := $(PYTHON) -m twine
+YML2C     = $(PYTHON) yml2c
 
 all: homepage
 
 homepage: index.html features.html yslt.html toolchain.html programming.html hello.html
 
-update: homepage format.css gpl-2.0.txt
-	rsync -avC *.html *.yml2 format.css *.yhtml2 gpl-2.0.txt samples dragon:fdik.org/yml2/
+update: homepage format.css COPYING.txt
+	rsync -avC *.html *.yml2 format.css *.yhtml2 COPYING.txt samples dragon:fdik.org/yml2/
 
 update-all: update yml2c yml2.py pyPEG.py backend.py yml2proc
 	if test -z $(VERSION) ; then echo VERSION not set ; exit 1 ; fi
-	rsync -avC *.py yml2c Makefile yml2proc xml2yml.ysl2 standardlib.ysl2 samples dragon:fdik.org/yml2/
-	ssh dragon bash -c "cd ; cd fdik.org/; tar cvjf yml-$(VERSION).tar.bz2 yml2/{*.py,*.yml2,*.yhtml2,format.css,gpl-2.0.txt,yml2c,Makefile,yml2proc,xml2yml.ysl2,standardlib.ysl2,samples} ; rm yml2.tar.bz2 ; ln -s yml-$(VERSION).tar.bz2 yml2.tar.bz2"
+	rsync -avC *.py yml2 yml2c Makefile yml2proc xml2yml.ysl2 standardlib.ysl2 samples dragon:fdik.org/yml2/
+	ssh dragon bash -c "cd ; cd fdik.org/; tar cvjf yml-$(VERSION).tar.bz2 yml2/{*.py,*.yml2,*.yhtml2,format.css,COPYING.txt,yml2,yml2c,Makefile,yml2proc,xml2yml.ysl2,standardlib.ysl2,samples} ; rm yml2.tar.bz2 ; ln -s yml-$(VERSION).tar.bz2 yml2.tar.bz2"
 
 %.html: %.en.yhtml2 heading.en.yhtml2 homepage.en.yhtml2
 	$(YML2C) $< -o $@
@@ -32,15 +32,18 @@
 	mv -f deb_dist/python-yml2_$(PKGVER)-$(DEBVER)_all.deb .
 
 clean:
-	rm -f *.html *.pyc *.pyo
+	rm -f *.html *.pyc *.pyo */*.pyc */*.pyo
+	rm -rf *.egg-info
 	rm -f YML2_$(PKGVER).orig.tar.gz
 	rm -f python-yml2_$(PKGVER)-$(DEBVER)_all.deb
 
-.PHONY: dist
+.PHONY: dist dist/YML2-$(PKGVER).tar.gz
 dist: dist/YML2-$(PKGVER).tar.gz
 	$(TWINE) check $<
 
 dist/YML2-$(PKGVER).tar.gz:
 	$(PYTHON) setup.py sdist
-	ls -lh dist/YML2-$(PKGVER).tar.gz
 
+install:
+	pip install .
+