equal
deleted
inserted
replaced
1 YML_PATH= |
1 PYTHON := python3 |
2 YML2C=yml2c |
2 YML_PATH = |
3 PKGVER=$(shell python setup.py -V) |
3 YML2C = yml2c |
4 DEBVER=1 |
4 DEBVER := 1 |
|
5 PKGVER = $(shell $(PYTHON) setup.py -V) |
|
6 TWINE := $(PYTHON) -m twine |
5 |
7 |
6 all: homepage |
8 all: homepage |
7 |
9 |
8 homepage: index.html features.html yslt.html toolchain.html programming.html hello.html |
10 homepage: index.html features.html yslt.html toolchain.html programming.html hello.html |
9 |
11 |
24 YML2_$(PKGVER).orig.tar.gz: |
26 YML2_$(PKGVER).orig.tar.gz: |
25 python setup.py sdist |
27 python setup.py sdist |
26 mv -f dist/YML2-$(PKGVER).tar.gz YML2_$(PKGVER).orig.tar.gz |
28 mv -f dist/YML2-$(PKGVER).tar.gz YML2_$(PKGVER).orig.tar.gz |
27 |
29 |
28 python-yml2_$(PKGVER)-$(DEBVER)_all.deb: |
30 python-yml2_$(PKGVER)-$(DEBVER)_all.deb: |
29 python setup.py --command-packages=stdeb.command bdist_deb |
31 $(PYTHON) setup.py --command-packages=stdeb.command bdist_deb |
30 mv -f deb_dist/python-yml2_$(PKGVER)-$(DEBVER)_all.deb . |
32 mv -f deb_dist/python-yml2_$(PKGVER)-$(DEBVER)_all.deb . |
31 |
33 |
32 clean: |
34 clean: |
33 rm -f *.html *.pyc *.pyo |
35 rm -f *.html *.pyc *.pyo |
34 rm -f YML2_$(PKGVER).orig.tar.gz |
36 rm -f YML2_$(PKGVER).orig.tar.gz |
35 rm -f python-yml2_$(PKGVER)-$(DEBVER)_all.deb |
37 rm -f python-yml2_$(PKGVER)-$(DEBVER)_all.deb |
|
38 |
|
39 .PHONY: dist |
|
40 dist: dist/YML2-$(PKGVER).tar.gz |
|
41 $(TWINE) check $< |
|
42 |
|
43 dist/YML2-$(PKGVER).tar.gz: |
|
44 $(PYTHON) setup.py sdist |
|
45 ls -lh dist/YML2-$(PKGVER).tar.gz |
|
46 |