source: projects/rootfiles/trunk/Makefile @ 4140

Revision 4140, 997 bytes checked in by daisuke, 13 years ago (diff)

rootfiles: fix Makefile

RevLine 
[1127]1DESTDIR=
2NAME=rootfiles-vine
3DATE:=$(shell date +'%Y%m%d')
4PWD:=$(shell pwd)
[3562]5EXCLUDE= Makefile rootfiles-vl.spec
[1127]6
[3565]7VERSION := $(shell awk '/Version:/ { print $$2 }' rootfiles-vl.spec)
8RELEASE := $(shell awk '/Release:/ { print $$2 }' rootfiles-vl.spec)
9TAG=$(NAME)-$(VERSION)
10
[1127]11install:
12        mkdir -p ${DESTDIR}/root
[3562]13        tar --exclude Makefile --exclude rootfiles-vl.spec -cvf - . \
[1127]14        | (cd ${DESTDIR}/root ; tar -xf -)
15
16rpm: tarbz2
[3567]17        rpm -ba rootfiles-vl.spec
[1127]18
[4135]19tarbz2: clean
[4140]20        if [ -d ../${NAME}-${VERSION} ]; then rm -rf ../${NAME}-${VERSION} ;fi
[4135]21        cd .. && cp -a ${PWD} ${NAME}-${VERSION}
22        cd .. && tar --exclude .svn -cjf ${NAME}-${VERSION}.tar.bz2 ${NAME}-${VERSION}
[4138]23        cp -f ../${NAME}-${VERSION}.tar.bz2 $(shell rpm --eval %{_sourcedir})/
[4140]24        if [ -d ../${NAME}-${VERSION} ]; then rm -rf ../${NAME}-${VERSION} ;fi
[1127]25
[3565]26tag:
27        if [ ! -d ../tags/$(TAG) ] ;then \
28                svn copy ../trunk ../tags/$(TAG) ;\
29                svn commit -m "tagging as $(TAG)" ../tags/$(TAG) ;\
30                echo "Tagged as $(TAG)" ;\
31        fi
32
[1127]33clean:
34        rm -fv *~ .*.swp
35
Note: See TracBrowser for help on using the repository browser.