1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
PREFIX := /usr
VERSION = $(shell grep version setup.py|sed -e "s/^[^']*//;s/[',]//g;")
all: build
clean:
PREFIX=$(PREFIX) python setup.py clean
rm -f augeas.py*
distclean: clean
rm -fr build dist MANIFEST
build:
PREFIX=$(PREFIX) python setup.py build
install:
PREFIX=$(PREFIX) python setup.py install
sdist:
PREFIX=$(PREFIX) python setup.py sdist
check:
PREFIX=$(PREFIX) python setup.py test
srpm: sdist
cp python-augeas.spec dist
rpmbuild -bs --define "_srcrpmdir ." --define '_sourcedir dist' dist/python-augeas.spec
.PHONY: sdist install build clean check distclean srpm
|