From 316e1ef374d3c02f99904bbf1bfe76ccddff8134 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 22 Oct 2024 18:05:08 -0400 Subject: build: New make dist[sign] targets --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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} -- cgit v1.2.3