equal
deleted
inserted
replaced
1 YML_PATH = |
1 YML_PATH = |
2 DEBVER := 1 |
2 DEBVER := 1 |
3 PYTHON := python3 |
3 PYTHON := python3 |
4 PKGVER = $(shell $(PYTHON) setup.py -V) |
4 PKGVER = $(shell awk '/^version/ {print $$3}' setup.cfg) |
5 TWINE := $(PYTHON) -m twine |
5 TWINE := $(PYTHON) -m twine |
|
6 TWINEREP := pypi |
6 YML2C = $(PYTHON) yml2c |
7 YML2C = $(PYTHON) yml2c |
7 |
8 |
8 all: homepage |
9 all: homepage |
9 |
10 |
10 homepage: index.html features.html yslt.html toolchain.html programming.html hello.html |
11 homepage: index.html features.html yslt.html toolchain.html programming.html hello.html |
34 clean: |
35 clean: |
35 rm -f *.html *.pyc *.pyo */*.pyc */*.pyo |
36 rm -f *.html *.pyc *.pyo */*.pyc */*.pyo |
36 rm -rf *.egg-info |
37 rm -rf *.egg-info |
37 rm -f YML2_$(PKGVER).orig.tar.gz |
38 rm -f YML2_$(PKGVER).orig.tar.gz |
38 rm -f python-yml2_$(PKGVER)-$(DEBVER)_all.deb |
39 rm -f python-yml2_$(PKGVER)-$(DEBVER)_all.deb |
|
40 rm -f dist/YML2-$(PKGVER).tar.gz |
39 |
41 |
40 .PHONY: dist dist/YML2-$(PKGVER).tar.gz |
42 sdist-pypi: dist/YML2-$(PKGVER).tar.gz |
41 dist: dist/YML2-$(PKGVER).tar.gz |
|
42 $(TWINE) check $< |
43 $(TWINE) check $< |
43 |
44 |
|
45 upload-pypi: sdist-pypi |
|
46 $(TWINE) upload --repository "$(TWINEREP)" $< |
|
47 |
|
48 .PHONY: dist/YML2-$(PKGVER).tar.gz |
44 dist/YML2-$(PKGVER).tar.gz: |
49 dist/YML2-$(PKGVER).tar.gz: |
45 $(PYTHON) setup.py sdist |
50 $(PYTHON) setup.py sdist |
46 |
51 |
47 install: |
52 install: |
48 pip install . |
53 pip install -e . |
49 |
54 |