diff options
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 |