From 20e1827d5490533246fe303c1e0ac84e8066f14d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 23 Dec 2020 02:36:20 +0000 Subject: [PATCH] Makefile: Add a target for building a single release archive git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9241 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ced860c1a..8eb917e75 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,8 @@ REVISION ?= $(shell if [ -e .svn ]; then \ echo -n .; \ git log | grep -c ^commit; \ fi) -VERSION := $(shell echo -n "$$(sed -n 's/^\#define[[:blank:]]SCST_VERSION_NAME[[:blank:]]*\"\([^-]*\).*\"/\1/p' scst/include/scst_const.h)$(REVISION)") +VERSION_WITHOUT_REVISION := $(shell echo -n "$$(sed -n 's/^\#define[[:blank:]]SCST_VERSION_NAME[[:blank:]]*\"\([^-]*\).*\"/\1/p' scst/include/scst_const.h)") +VERSION := $(VERSION_WITHOUT_REVISION)$(REVISION) DEBIAN_REVISION=1 RPMTOPDIR ?= $(shell if [ $$(id -u) = 0 ]; then echo /usr/src/packages;\ else echo $$PWD/rpmbuilddir; fi) @@ -400,6 +401,13 @@ dpkg: ../scst_$(VERSION).orig.tar.gz ls -l dpkg release-archive: + $(MAKE) 2release + scripts/generate-release-archive scst "$(VERSION_WITHOUT_REVISION)" + md5sum ../scst-$(VERSION_WITHOUT_REVISION).tar.bz2 \ + > ../scst-$(VERSION_WITHOUT_REVISION).tar.bz2.md5sum + $(MAKE) 2debug + +multiple-release-archives: $(MAKE) 2release for m in $$(find -name Makefile | \ xargs grep -l '^release-archive:' | \