File: Makefile

package info (click to toggle)
python-iniparse 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: python: 2,215; makefile: 24; sh: 8
file content (19 lines) | stat: -rw-r--r-- 559 bytes parent folder | download | duplicates (6)
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"

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

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