claudio@60: PYTHON := python3 claudio@60: YML_PATH = claudio@60: YML2C = yml2c claudio@60: DEBVER := 1 claudio@60: PKGVER = $(shell $(PYTHON) setup.py -V) claudio@60: TWINE := $(PYTHON) -m twine 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: vb@0: update: homepage format.css gpl-2.0.txt vb@0: rsync -avC *.html *.yml2 format.css *.yhtml2 gpl-2.0.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 vb@0: rsync -avC *.py yml2c Makefile yml2proc xml2yml.ysl2 standardlib.ysl2 samples dragon:fdik.org/yml2/ vb@0: 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" 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: vb@0: rm -f *.html *.pyc *.pyo claudio@56: rm -f YML2_$(PKGVER).orig.tar.gz claudio@56: rm -f python-yml2_$(PKGVER)-$(DEBVER)_all.deb claudio@60: claudio@60: .PHONY: dist 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: ls -lh dist/YML2-$(PKGVER).tar.gz claudio@60: