--- Makefile | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 162bd90..4d92015 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ CFLAGS := -g -I/usr/include/python$(PYVER) -Wall -Werror -fPIC LDFLAGS := -shared VERSION := $(shell awk '/Version:/ { print $$2 }' python-pyblock.spec) +RELEASE := $(shell awk -F '[ %]' '/Release:/ { print $$2 }' python-pyblock.spec) USESELINUX = 1 dm_LIBS = dmraid z devmapper @@ -39,6 +40,10 @@ dmraidmodule.so.$(VERSION) : dmraid.o pyhelpers.o dmraidtest : dmraidtest.c $(CC) $(CFLAGS) -o $@ $^ -ldmraid -ldevmapper -lz +tag: + @git tag -a -m "Tag as pyblock-$(VERSION)-$(RELEASE)" pyblock-$(VERSION)-$(RELEASE) + @echo "Tagged as pyblock-$(VERSION)-$(RELEASE)" + pyblock-$(VERSION).tar.bz2 : @rm -rvf /tmp/$@ @rm -vf $(PWD)/../pyblock-$(VERSION) @@ -49,6 +54,8 @@ pyblock-$(VERSION).tar.bz2 : .PHONY : pyblock-$(VERSION).tar.bz2 archive : clean pyblock-$(VERSION).tar.bz2 +archive_tagged : tag archive + flat_install: all @install -v -m 0755 -d ${DESTDIR}/ @for x in $(PYFILES) ; do \ -- 1.6.0.6 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list