diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2014-01-10 00:17:55 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2014-01-10 00:17:55 +0000 |
commit | 460210f60a61f2f7642e1baba125a9030c17f5fb (patch) | |
tree | 1e0740a932159ac1d01e26e74d5c7ae3fee41725 | |
parent | d2337a6fc9e2df96381465d44ee7582bde82b6d1 (diff) |
add sha: target like src/etc/Makefile .. prodded by deraadt@
I also added a hash: target so I can re-roll tarballs w/out re-populating destdir/
-rw-r--r-- | Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.54 2013/10/25 18:12:59 miod Exp $ +# $OpenBSD: Makefile,v 1.55 2014/01/10 00:17:54 todd Exp $ .include <bsd.own.mk> .include <bsd.xconf.mk> @@ -75,8 +75,15 @@ font-cache: release: @echo You must set DESTDIR and RELEASEDIR for a release.; exit 255 .else -release: release-clean release-install dist -.ORDER: release-clean release-install dist +release: sha + +sha: release-clean release-install dist hash + +hash: dist + -cd ${RELEASEDIR}; \ + sum -a sha256 x*tgz > SHA256 + +.ORDER: release-clean release-install dist hash .endif release-clean: |