aboutsummaryrefslogtreecommitdiffstats
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/Autoconf.mk2
-rw-r--r--mk/Maintainer.mk19
2 files changed, 17 insertions, 4 deletions
diff --git a/mk/Autoconf.mk b/mk/Autoconf.mk
index a2f6dd3..7608ea5 100644
--- a/mk/Autoconf.mk
+++ b/mk/Autoconf.mk
@@ -162,7 +162,7 @@ config: Make.config
@true
Make.config: $(srcdir)/GNUmakefile
- @printf "$(make-config-q)" > $@
+ @echo -e "$(make-config-q)" > $@
@echo
@echo "Make.config written, edit if needed"
@echo
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