diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-10-22 18:05:08 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-10-22 18:23:36 -0400 |
commit | 316e1ef374d3c02f99904bbf1bfe76ccddff8134 (patch) | |
tree | 91fc4710b456a143468a91ec461c1c942e6798de | |
parent | efb24a431007012a31641b25ea2c1857d5d8d803 (diff) | |
download | bfs-316e1ef374d3c02f99904bbf1bfe76ccddff8134.tar.xz |
build: New make dist[sign] targets
-rw-r--r-- | Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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} |