Update comment to reflect reality.
[pykickstart.git] / Makefile
blob801ab367e840251635f742e472552d99d0519ac8
1 PKGNAME=pykickstart
2 VERSION=$(shell awk '/Version:/ { print $$2 }' ${PKGNAME}.spec)
3 RELEASE=$(shell awk '/Release:/ { print $$2 }' ${PKGNAME}.spec | sed -e 's|%.*$$||g')
4 CVSTAG=r$(subst .,_,$(VERSION)-$(RELEASE))
6 MANDIR=/usr/share/man
7 PREFIX=/usr
9 default: all
11 all:
12 $(MAKE) -C po
14 clean:
15 -rm *.tar.gz pykickstart/*.pyc pykickstart/commands/*.pyc pykickstart/handlers/*.pyc
16 $(MAKE) -C po clean
17 python setup.py -q clean --all
19 install: all
20 python setup.py install --root=$(DESTDIR)
21 $(MAKE) -C po install
23 tag:
24 cvs tag -FR $(CVSTAG)
26 archive: tag
27 @rm -rf /tmp/${PKGNAME}-$(VERSION) /tmp/${PKGNAME}
28 @CVSROOT=`cat CVS/Root`; cd /tmp; cvs -d $$CVSROOT export -r$(CVSTAG) ${PKGNAME}
29 @mv /tmp/${PKGNAME} /tmp/${PKGNAME}-$(VERSION)
30 @cd /tmp/${PKGNAME}-$(VERSION) ; python setup.py -q sdist
31 @cp /tmp/${PKGNAME}-$(VERSION)/dist/${PKGNAME}-$(VERSION).tar.gz .
32 @rm -rf /tmp/${PKGNAME}-$(VERSION)
33 @echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz"
35 local:
36 @rm -rf ${PKGNAME}-$(VERSION).tar.gz
37 @rm -rf /tmp/${PKGNAME}-$(VERSION) /tmp/${PKGNAME}
38 @dir=$$PWD; cp -a $$dir /tmp/${PKGNAME}-$(VERSION)
39 @cd /tmp/${PKGNAME}-$(VERSION) ; python setup.py -q sdist
40 @cp /tmp/${PKGNAME}-$(VERSION)/dist/${PKGNAME}-$(VERSION).tar.gz .
41 @rm -rf /tmp/${PKGNAME}-$(VERSION)
42 @echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz"