Fix --all option to clearpart.
[pykickstart.git] / Makefile
blobec1a40ffdc34379bce322f4a78732fdd06ac9f80
1 PKGNAME=pykickstart
2 VERSION=$(shell awk '/Version:/ { print $$2 }' ${PKGNAME}.spec)
3 RELEASE=$(shell awk '/Release:/ { print $$2 }' ${PKGNAME}.spec)
4 CVSTAG=r$(subst .,_,$(VERSION)-$(RELEASE))
6 MANDIR=/usr/share/man
7 PREFIX=/usr
9 default: all
11 all:
13 clean:
14 -rm *.tar.gz pykickstart/*.pyc
15 python setup.py -q clean --all
17 install: all
18 python setup.py install --root=$(DESTDIR)
20 tag:
21 cvs tag -FR $(CVSTAG)
23 archive: tag
24 @rm -rf /tmp/${PKGNAME}-$(VERSION) /tmp/${PKGNAME}
25 @CVSROOT=`cat CVS/Root`; cd /tmp; cvs -d $$CVSROOT export -r$(CVSTAG) ${PKGNAME}
26 @mv /tmp/${PKGNAME} /tmp/${PKGNAME}-$(VERSION)
27 @cd /tmp/${PKGNAME}-$(VERSION) ; python setup.py -q sdist
28 @cp /tmp/${PKGNAME}-$(VERSION)/dist/${PKGNAME}-$(VERSION).tar.gz .
29 @rm -rf /tmp/${PKGNAME}-$(VERSION)
30 @echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz"
32 local:
33 @rm -rf ${PKGNAME}-$(VERSION).tar.gz
34 @rm -rf /tmp/${PKGNAME}-$(VERSION) /tmp/${PKGNAME}
35 @dir=$$PWD; cp -a $$dir /tmp/${PKGNAME}-$(VERSION)
36 @cd /tmp/${PKGNAME}-$(VERSION) ; python setup.py -q sdist
37 @cp /tmp/${PKGNAME}-$(VERSION)/dist/${PKGNAME}-$(VERSION).tar.gz .
38 @rm -rf /tmp/${PKGNAME}-$(VERSION)
39 @echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz"