vb@0: YML_PATH=
vb@0: YML2C=yml2c
h@48: PKGVER=$(shell python setup.py -V)
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
h@41: 	rsync -avC *.py yml2 yml2c Makefile yml2proc xml2yml.ysl2 standardlib.ysl2 samples dragon:fdik.org/yml2/
h@41: 	ssh dragon bash -c "cd ; cd fdik.org/; tar cvjf yml-$(VERSION).tar.bz2 yml2/{*.py,*.yml2,*.yhtml2,format.css,gpl-2.0.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: 
vb@0: clean:
h@41: 	rm -f *.html *.pyc *.pyo */*.pyc */*.pyo
h@45: 	rm -rf *.egg-info
h@48: 
h@48: 
h@48: dist: dist/yml-$(PKGVER).tar.gz
h@48: 
h@48: dist/yml-$(PKGVER).tar.gz:
h@48: 	python setup.py sdist
h@49: 
h@49: install:
h@49: 	pip install .
h@49: 	rm setup.py