make tag: always tag latest-release as well

Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
Peter Jones 2017-04-10 12:27:52 -04:00
parent 0fe4a80e9c
commit 84d1118d00

View File

@ -34,6 +34,8 @@ SHIMNAME = shim
MMNAME = MokManager MMNAME = MokManager
FBNAME = fallback FBNAME = fallback
COMMITID ?= $(shell if [ -d .git ] ; then git log -1 --pretty=format:%H ; elif [ -f commit ]; then cat commit ; else echo commit id not available; fi)
ifneq ($(origin OVERRIDE_SECURITY_POLICY), undefined) ifneq ($(origin OVERRIDE_SECURITY_POLICY), undefined)
CFLAGS += -DOVERRIDE_SECURITY_POLICY CFLAGS += -DOVERRIDE_SECURITY_POLICY
endif endif
@ -116,7 +118,7 @@ shim_cert.h: shim.cer
version.c : version.c.in version.c : version.c.in
sed -e "s,@@VERSION@@,$(VERSION)," \ sed -e "s,@@VERSION@@,$(VERSION)," \
-e "s,@@UNAME@@,$(shell uname -a)," \ -e "s,@@UNAME@@,$(shell uname -a)," \
-e "s,@@COMMIT@@,$(shell if [ -d .git ] ; then git log -1 --pretty=format:%H ; elif [ -f commit ]; then cat commit ; else echo commit id not available; fi)," \ -e "s,@@COMMIT@@,$(COMMITID)," \
< version.c.in > version.c < version.c.in > version.c
certdb/secmod.db: shim.crt certdb/secmod.db: shim.crt
@ -208,6 +210,7 @@ test-archive:
tag: tag:
git tag --sign $(GITTAG) refs/heads/master git tag --sign $(GITTAG) refs/heads/master
git tag -f latest-release $(GITTAG)
archive: tag archive: tag
@rm -rf /tmp/shim-$(VERSION) /tmp/shim-$(VERSION)-tmp @rm -rf /tmp/shim-$(VERSION) /tmp/shim-$(VERSION)-tmp