summaryrefslogtreecommitdiff
path: root/Makefile
blob: 0e7631a5fe1461e900a607f1342d078a1dccee49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
PKGNAME = iniparse
SPECVERSION=$(shell awk '/Version:/ { print $$2 }' python-${PKGNAME}.spec)
SETUPVERSION=$(shell awk -F\' '/VERSION =/ { print $$2 }' setup.py)

clean:
	rm -f *.pyc *.pyo *~ *.bak
	rm -f iniparse/*.pyc iniparse/*.pyo iniparse/*~ iniparse/*.bak
	rm -f tests/*.pyc tests/*.pyo tests/*~ tests/*.bak
	rm -f *.tar.gz MANIFEST

archive:
	python setup.py sdist -d .
	@echo "The archive is in ${PKGNAME}-$(SETUPVERSION).tar.gz"

buildrpm: archive
	rpmbuild -ta ${PKGNAME}-$(SPECVERSION).tar.gz

pychecker:
	pychecker --stdlib iniparse/*py tests/*py