Revision 4140,
997 bytes
checked in by daisuke, 13 years ago
(diff) |
rootfiles: fix Makefile
|
Rev | Line | |
---|
[1127] | 1 | DESTDIR= |
---|
| 2 | NAME=rootfiles-vine |
---|
| 3 | DATE:=$(shell date +'%Y%m%d') |
---|
| 4 | PWD:=$(shell pwd) |
---|
[3562] | 5 | EXCLUDE= Makefile rootfiles-vl.spec |
---|
[1127] | 6 | |
---|
[3565] | 7 | VERSION := $(shell awk '/Version:/ { print $$2 }' rootfiles-vl.spec) |
---|
| 8 | RELEASE := $(shell awk '/Release:/ { print $$2 }' rootfiles-vl.spec) |
---|
| 9 | TAG=$(NAME)-$(VERSION) |
---|
| 10 | |
---|
[1127] | 11 | install: |
---|
| 12 | mkdir -p ${DESTDIR}/root |
---|
[3562] | 13 | tar --exclude Makefile --exclude rootfiles-vl.spec -cvf - . \ |
---|
[1127] | 14 | | (cd ${DESTDIR}/root ; tar -xf -) |
---|
| 15 | |
---|
| 16 | rpm: tarbz2 |
---|
[3567] | 17 | rpm -ba rootfiles-vl.spec |
---|
[1127] | 18 | |
---|
[4135] | 19 | tarbz2: 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] | 26 | tag: |
---|
| 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] | 33 | clean: |
---|
| 34 | rm -fv *~ .*.swp |
---|
| 35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.