changeset 56 | d48cf08cf448 |
parent 55 | e76930ea6464 |
child 60 | b19d0a86651b |
55:e76930ea6464 | 56:d48cf08cf448 |
---|---|
1 YML_PATH= |
1 YML_PATH= |
2 YML2C=yml2c |
2 YML2C=yml2c |
3 PKGVER=$(shell python setup.py -V) |
|
4 DEBVER=1 |
|
3 |
5 |
4 all: homepage |
6 all: homepage |
5 |
7 |
6 homepage: index.html features.html yslt.html toolchain.html programming.html hello.html |
8 homepage: index.html features.html yslt.html toolchain.html programming.html hello.html |
7 |
9 |
14 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" |
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" |
15 |
17 |
16 %.html: %.en.yhtml2 heading.en.yhtml2 homepage.en.yhtml2 |
18 %.html: %.en.yhtml2 heading.en.yhtml2 homepage.en.yhtml2 |
17 $(YML2C) $< -o $@ |
19 $(YML2C) $< -o $@ |
18 |
20 |
21 .PHONY: deb |
|
22 deb: YML2_$(PKGVER).orig.tar.gz python-yml2_$(PKGVER)-$(DEBVER)_all.deb |
|
23 |
|
24 YML2_$(PKGVER).orig.tar.gz: |
|
25 python setup.py sdist |
|
26 mv -f dist/YML2-$(PKGVER).tar.gz YML2_$(PKGVER).orig.tar.gz |
|
27 |
|
28 python-yml2_$(PKGVER)-$(DEBVER)_all.deb: |
|
29 python setup.py --command-packages=stdeb.command bdist_deb |
|
30 mv -f deb_dist/python-yml2_$(PKGVER)-$(DEBVER)_all.deb . |
|
31 |
|
19 clean: |
32 clean: |
20 rm -f *.html *.pyc *.pyo |
33 rm -f *.html *.pyc *.pyo |
34 rm -f YML2_$(PKGVER).orig.tar.gz |
|
35 rm -f python-yml2_$(PKGVER)-$(DEBVER)_all.deb |