claudio@62: YML_PATH = claudio@62: DEBVER := 1 claudio@60: PYTHON := python3 claudio@60: PKGVER = $(shell $(PYTHON) setup.py -V) claudio@60: TWINE := $(PYTHON) -m twine claudio@62: YML2C = $(PYTHON) yml2c vb@0: vb@0: all: homepage vb@0: vb@0: homepage: index.html features.html yslt.html toolchain.html programming.html hello.html vb@0: claudio@62: update: homepage format.css COPYING.txt claudio@62: rsync -avC *.html *.yml2 format.css *.yhtml2 COPYING.txt samples dragon:fdik.org/yml2/ vb@0: vb@0: update-all: update yml2c yml2.py pyPEG.py backend.py yml2proc vb@0: if test -z $(VERSION) ; then echo VERSION not set ; exit 1 ; fi claudio@62: rsync -avC *.py yml2 yml2c Makefile yml2proc xml2yml.ysl2 standardlib.ysl2 samples dragon:fdik.org/yml2/ claudio@62: 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" vb@0: vb@0: %.html: %.en.yhtml2 heading.en.yhtml2 homepage.en.yhtml2 vb@0: $(YML2C) $< -o $@ vb@0: claudio@56: .PHONY: deb claudio@56: deb: YML2_$(PKGVER).orig.tar.gz python-yml2_$(PKGVER)-$(DEBVER)_all.deb claudio@56: claudio@56: YML2_$(PKGVER).orig.tar.gz: claudio@56: python setup.py sdist claudio@56: mv -f dist/YML2-$(PKGVER).tar.gz YML2_$(PKGVER).orig.tar.gz claudio@56: claudio@56: python-yml2_$(PKGVER)-$(DEBVER)_all.deb: claudio@60: $(PYTHON) setup.py --command-packages=stdeb.command bdist_deb claudio@56: mv -f deb_dist/python-yml2_$(PKGVER)-$(DEBVER)_all.deb . claudio@56: vb@0: clean: claudio@62: rm -f *.html *.pyc *.pyo */*.pyc */*.pyo claudio@62: rm -rf *.egg-info claudio@56: rm -f YML2_$(PKGVER).orig.tar.gz claudio@56: rm -f python-yml2_$(PKGVER)-$(DEBVER)_all.deb claudio@60: claudio@62: .PHONY: dist dist/YML2-$(PKGVER).tar.gz claudio@60: dist: dist/YML2-$(PKGVER).tar.gz claudio@60: $(TWINE) check $< claudio@60: claudio@60: dist/YML2-$(PKGVER).tar.gz: claudio@60: $(PYTHON) setup.py sdist claudio@60: claudio@62: install: claudio@62: pip install . claudio@62: