diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-02-22 10:00:10 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-02-22 10:00:10 +0100 |
commit | db370e47ce045dafd354a1a1109b49ec60478bce (patch) | |
tree | cc9152c472cd976e735a5ca83600ef6f1787b2d7 /mk/Maintainer.mk | |
parent | ad17d8c58b54aa7e947cfc82fbda9753c1da249c (diff) | |
download | fbida-db370e47ce045dafd354a1a1109b49ec60478bce.tar.gz |
update maintainer targets
Diffstat (limited to 'mk/Maintainer.mk')
-rw-r--r-- | mk/Maintainer.mk | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/mk/Maintainer.mk b/mk/Maintainer.mk index 1e237d3..dc4b4bb 100644 --- a/mk/Maintainer.mk +++ b/mk/Maintainer.mk @@ -12,10 +12,19 @@ sync:: distclean chmod 444 $(srcdir)/INSTALL $(srcdir)/mk/*.mk -repository := $(shell basename $(PWD)) +repository := $(shell basename $(PWD)) +usetito := $(shell if test -d .tito; then echo yes; else echo no; fi) release-dir ?= $(HOME)/projects/Releases release-pub ?= bigendian.kraxel.org:/public/vhosts/www.kraxel.org/releases/$(repository) -tarball = $(release-dir)/$(repository)-$(VERSION).tar +tarball = $(release-dir)/$(repository)-$(VERSION).tar + +ifeq ($(usetito),yes) + +.PHONY: release +release: + @echo "tito config found, so use this ;)" + +else $(tarball).gz: git tag -m "release $(VERSION)" "$(VERSION)" @@ -24,7 +33,11 @@ $(tarball).gz: -o $(tarball) $(VERSION) gzip $(tarball) +$(tarball).gz.asc: $(tarball).gz + gpg --detach-sign --armor $(tarball).gz + .PHONY: release release: $(tarball).gz - gpg --detach-sign --armor $(tarball).gz scp $(tarball).gz* $(release-pub) + +endif |