From 99d640757fd5d261305f218c8db582d231e8a6fb Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Wed, 17 Sep 2008 14:57:28 +0000 Subject: update makefile to create the tarball --- Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.1