summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2008-09-17 14:57:28 +0000
committerAntoine Ginies <aginies@mandriva.com>2008-09-17 14:57:28 +0000
commit99d640757fd5d261305f218c8db582d231e8a6fb (patch)
treea55208d7af7675c04d5dfd3cb4ed6f2990cea5ee
parentfd51f8c57d6be0811989700421bec7d273610912 (diff)
downloaddrakpxelinux-99d640757fd5d261305f218c8db582d231e8a6fb.tar
drakpxelinux-99d640757fd5d261305f218c8db582d231e8a6fb.tar.gz
drakpxelinux-99d640757fd5d261305f218c8db582d231e8a6fb.tar.bz2
drakpxelinux-99d640757fd5d261305f218c8db582d231e8a6fb.tar.xz
drakpxelinux-99d640757fd5d261305f218c8db582d231e8a6fb.zip
update makefile to create the tarball
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 7a1b8e1..f0713e9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,5 @@
PACKAGE=drakpxelinux
-VERSION:=$(shell rpm -q --qf %{VERSION} --specfile $(PACKAGE).spec)
-RELEASE:=$(shell rpm -q --qf %{RELEASE} --specfile $(PACKAGE).spec)
+VERSION=1.2.1
TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__')
RPMOPT = --clean --rmspec
@@ -16,7 +15,8 @@ all: drakpxelinux.pl
clean:
$(MAKE) -C po $@
rm -f core .#*[0-9]
- rm -rf *~
+ rm -rf *~ *.tar.bz2
+ rm -rf ../$(PACKAGE)-$(VERSION)
# for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
install: all
@@ -47,9 +47,10 @@ localcopy:
find $(PACKAGE)-$(VERSION) -type d -name CVS -o -name .cvsignore |xargs rm -rf
tar:
- tar cvf $(PACKAGE)-$(VERSION).tar $(PACKAGE)-$(VERSION)
- bzip2 -9vf $(PACKAGE)-$(VERSION).tar
- rm -rf $(PACKAGE)-$(VERSION)
+ mkdir ../$(PACKAGE)-$(VERSION)
+ cp -a * ../$(PACKAGE)-$(VERSION)
+ tar cfj --exclude-vcs $(PACKAGE)-$(VERSION).tar.bz2 ../$(PACKAGE)-$(VERSION)
+ rm -rf ../$(PACKAGE)-$(VERSION)
buildrpm:
rpm -ta $(RPMOPT) $(PACKAGE)-$(VERSION).tar.bz2