diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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 |