diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index f6da878..4dcfbbd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,9 @@ # $Id$ +VERSION := $(shell rpm -q --qf "%{VERSION}\n" --specfile $(PACKAGE).spec | tail -1) +RELEASE := $(shell rpm -q --qf "%{RELEASE}\n" --specfile $(PACKAGE).spec | tail -1) +TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__') + macrosfiles = $(RPMALLARCH:=.macros) pkg_data = \ @@ -73,7 +77,7 @@ install-data-local: $(macrosfiles) $(mkinstalldirs) $(DESTDIR)$(RPMVENDORDIR)/$${i}-$(RPMOS); \ $(install_sh_DATA) $${i}.macros $(DESTDIR)$(RPMVENDORDIR)/$${i}-$(RPMOS)/macros; \ done - + .PHONY: rpm rpm: dist dist-bzip2 gzip -dc $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz | bzip2 > $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 @@ -83,7 +87,9 @@ rpm: dist dist-bzip2 ChangeLog: cvs2cl -W 400 -I ChangeLog --accum -U ../common/username rm -f *.bak - + +cvstag: + cvs tag $(CVSTAGOPT) $(TAG) CLEANFILES = $(pkg_gdata) $(pkg_gscripts) $(macrosfiles) \ macros-perarch \ |