aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-14 07:15:00 +0000
committerOmar Polo <op@omarpolo.com>2023-06-14 07:15:00 +0000
commit5dad390015970eb1e35f6e6fd9f8f28bf6e6db0e (patch)
tree89671cf9d6e02b00917a72c6a55df7c4d8ef3427 /Makefile
parent1959cda3d8cb21be770535e48529b7bdfa6e240d (diff)
add `release' target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3de0eda..27441f7 100644
--- a/Makefile
+++ b/Makefile
@@ -111,6 +111,8 @@ y.tab.c: parse.y
# -- maintainer targets --
+.PHONY: release dist
+
DISTFILES = .cirrus.yml .dockerignore .gitignore ChangeLog LICENSE \
Makefile README.md config.c configure configure.local.example \
crypto.c dirs.c fcgi.c ge.1 ge.c gg.1 gg.c gmid.8 gmid.c \
@@ -118,6 +120,11 @@ DISTFILES = .cirrus.yml .dockerignore .gitignore ChangeLog LICENSE \
parse.y proxy.c puny.c sandbox.c server.c utf8.c utils.c \
y.tab.c
+release:
+ sed -i -e '/^RELEASE=/s/no/yes' configure
+ ${MAKE} dist
+ sed -i -e '/^RELEASE=/s/yes/no' configure
+
dist: ${DISTNAME}.sha256
${DISTNAME}.sha256: ${DISTNAME}.tar.gz