summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2021-07-06 17:13:20 +0530
committerArun Isaac2021-07-06 17:28:40 +0530
commit4f4ef624bfe0b4c7fb22e189a71941a9b99a5113 (patch)
treea9e441f7992173f1e68b3abe818eebf053187083
parent8bbf335358bc6bd63a354b48e67da5f112dc0f7c (diff)
downloadccwl-4f4ef624bfe0b4c7fb22e189a71941a9b99a5113.tar.gz
ccwl-4f4ef624bfe0b4c7fb22e189a71941a9b99a5113.tar.lz
ccwl-4f4ef624bfe0b4c7fb22e189a71941a9b99a5113.zip
Makefile: Add release target.
* Makefile.am (CURRENT_RELEASE): New variable. (release, $(CURRENT_RELEASE), %.asc): New rules.
-rw-r--r--Makefile.am12
1 files changed, 12 insertions, 0 deletions
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: