aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-10-04 15:23:25 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-10-04 15:23:25 +0100
commit09cece169814048c4c2bb2e0882c6944a482a04b (patch)
treec12bf0339a5f8e3e7b9fa34368d5f7391a6429c9 /Makefile
parent47fc6d5e464e51ee235b27b88b7b8e4a94d6457a (diff)
Updated makefile to be betterer
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 13 insertions, 4 deletions
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