author | Claudio Luck <claudio.luck@pep.foundation> |
Wed, 27 Feb 2019 14:43:35 +0100 | |
changeset 57 | 2f4ad3800a3f |
parent 56 | d48cf08cf448 |
child 60 | b19d0a86651b |
permissions | -rw-r--r-- |
0 | 1 |
YML_PATH= |
55
e76930ea6464
rename binaries but add compat symlinks (for prep for setup.py)
Claudio Luck <claudio.luck@pep.foundation>
parents:
52
diff
changeset
|
2 |
YML2C=yml2c |
56
d48cf08cf448
wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
55
diff
changeset
|
3 |
PKGVER=$(shell python setup.py -V) |
d48cf08cf448
wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
55
diff
changeset
|
4 |
DEBVER=1 |
0 | 5 |
|
6 |
all: homepage |
|
7 |
||
8 |
homepage: index.html features.html yslt.html toolchain.html programming.html hello.html |
|
9 |
||
10 |
update: homepage format.css gpl-2.0.txt |
|
11 |
rsync -avC *.html *.yml2 format.css *.yhtml2 gpl-2.0.txt samples dragon:fdik.org/yml2/ |
|
12 |
||
13 |
update-all: update yml2c yml2.py pyPEG.py backend.py yml2proc |
|
14 |
if test -z $(VERSION) ; then echo VERSION not set ; exit 1 ; fi |
|
15 |
rsync -avC *.py yml2c Makefile yml2proc xml2yml.ysl2 standardlib.ysl2 samples dragon:fdik.org/yml2/ |
|
16 |
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" |
|
17 |
||
18 |
%.html: %.en.yhtml2 heading.en.yhtml2 homepage.en.yhtml2 |
|
19 |
$(YML2C) $< -o $@ |
|
20 |
||
56
d48cf08cf448
wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
55
diff
changeset
|
21 |
.PHONY: deb |
d48cf08cf448
wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
55
diff
changeset
|
22 |
deb: YML2_$(PKGVER).orig.tar.gz python-yml2_$(PKGVER)-$(DEBVER)_all.deb |
d48cf08cf448
wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
55
diff
changeset
|
23 |
|
d48cf08cf448
wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
55
diff
changeset
|
24 |
YML2_$(PKGVER).orig.tar.gz: |
d48cf08cf448
wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
55
diff
changeset
|
25 |
python setup.py sdist |
d48cf08cf448
wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
55
diff
changeset
|
26 |
mv -f dist/YML2-$(PKGVER).tar.gz YML2_$(PKGVER).orig.tar.gz |
d48cf08cf448
wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
55
diff
changeset
|
27 |
|
d48cf08cf448
wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
55
diff
changeset
|
28 |
python-yml2_$(PKGVER)-$(DEBVER)_all.deb: |
d48cf08cf448
wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
55
diff
changeset
|
29 |
python setup.py --command-packages=stdeb.command bdist_deb |
d48cf08cf448
wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
55
diff
changeset
|
30 |
mv -f deb_dist/python-yml2_$(PKGVER)-$(DEBVER)_all.deb . |
d48cf08cf448
wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
55
diff
changeset
|
31 |
|
0 | 32 |
clean: |
33 |
rm -f *.html *.pyc *.pyo |
|
56
d48cf08cf448
wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
55
diff
changeset
|
34 |
rm -f YML2_$(PKGVER).orig.tar.gz |
d48cf08cf448
wip: add setup.py, README.md and debian packaging
Claudio Luck <claudio.luck@pep.foundation>
parents:
55
diff
changeset
|
35 |
rm -f python-yml2_$(PKGVER)-$(DEBVER)_all.deb |