From 09cece169814048c4c2bb2e0882c6944a482a04b Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Tue, 4 Oct 2011 15:23:25 +0100 Subject: Updated makefile to be betterer --- Makefile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2ce411c..2254496 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,9 @@ clean: ruby ./setup.rb clean ; \ fi $(RM) -r tmp + $(RM) -r OpenBSD + $(RM) setup.rb + distclean: clean if [ -e ./setup.rb ] ; then ruby ./setup.rb distclean ; fi @@ -35,14 +38,20 @@ test: setup.rb setup.rb: /usr/lib/ruby/1.8/setup.rb ln -sf /usr/lib/ruby/1.8/setup.rb . -OpenBSD: OpenBSD/sha256sums +OpenBSD: OpenBSD/sha256.asc -OpenBSD/sha256sums: OpenBSD/ruby-mauvealert.tar.gz OpenBSD/ruby-protobuf.tar.gz +OpenBSD/sha256: OpenBSD/ruby-mauvealert.tar.gz OpenBSD/ruby-protobuf.tar.gz # # rejig sha256sum to openbsd sha256 # + $(RM) OpenBSD/sha256 cd OpenBSD && sha256sum * | sed -e 's/\([^ ]\+\) \(.*\)$$/SHA256 (\2) = \1/' > sha256 - gpg --clearsign OpenBSD/sha256sum + +OpenBSD/sha256.asc: OpenBSD/sha256 + # + # Sign it. + # + gpg --clearsign OpenBSD/sha256 OpenBSD/ruby-mauvealert.tar.gz: all setup.rb mkdir -p tmp/ruby-mauvealert @@ -63,5 +72,5 @@ OpenBSD/ruby-protobuf.tar.gz: mkdir -p OpenBSD tar -C tmp/ruby-protobuf -czvf $@ . -.PHONY: all clean openbsd_tarball test distclean +.PHONY: all clean openbsd_tarball test distclean OpenBSD -- cgit v1.2.1