summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-10-22 18:05:08 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-10-22 18:23:36 -0400
commit316e1ef374d3c02f99904bbf1bfe76ccddff8134 (patch)
tree91fc4710b456a143468a91ec461c1c942e6798de /Makefile
parentefb24a431007012a31641b25ea2c1857d5d8d803 (diff)
downloadbfs-316e1ef374d3c02f99904bbf1bfe76ccddff8134.tar.xz
build: New make dist[sign] targets
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d0fe9b1..b0d6e46 100644
--- a/Makefile
+++ b/Makefile
@@ -225,7 +225,17 @@ ${OBJS}: gen/config.mk
# Include any generated dependency files
-include ${OBJS:.o=.d}
-## Packaging (`make install`)
+## Packaging (`make dist`, `make install`)
+
+TARBALL = bfs-$$(build/version.sh).tar.gz
+
+dist:
+ ${MSG} "[DIST] ${TARBALL}" git archive HEAD -o ${TARBALL}
+
+distsign: dist
+ ${MSG} "[SIGN] ${TARBALL}" ssh-keygen -Y sign -q -f $$(git config user.signingkey) -n file ${TARBALL}
+
+.PHONY: dist distsign
DEST_PREFIX := ${DESTDIR}${PREFIX}
DEST_MANDIR := ${DESTDIR}${MANDIR}