From 4f4ef624bfe0b4c7fb22e189a71941a9b99a5113 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 6 Jul 2021 17:13:20 +0530 Subject: Makefile: Add release target. * Makefile.am (CURRENT_RELEASE): New variable. (release, $(CURRENT_RELEASE), %.asc): New rules. --- Makefile.am | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index f3bf68f..c68e7d0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -161,6 +161,18 @@ website/manual/dev/en: doc/ccwl.html $(MKDIR_P) $(dir $@) cp -vr $< $@ +# Make release + +CURRENT_RELEASE = website/releases/$(firstword $(DIST_ARCHIVES)) +.PHONY: release +release: $(CURRENT_RELEASE) $(CURRENT_RELEASE).asc + +$(CURRENT_RELEASE): dist distcheck + cp $(notdir $@) $@ + +%.asc: % + gpg --detach-sign --armor $< + # The clean target depends on clean-local. Use clean-local to clean up # several directories. Directories cannot be specified in CLEANFILES. clean-local: -- cgit v1.2.3