aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2017-08-01 11:13:37 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2017-08-01 11:13:37 +0100
commit89f7cb1762a865d72827a024559018efc247e185 (patch)
tree6db3c66f53d68c73ca7da923414fc38cf05813a8 /Makefile
parent8a45a5152f953c5573bd18a3bd8b0785f3dea513 (diff)
Removed more cruft. Updated debian/rules to use the Makefile. Updated bundle
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 11 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index d8176f7..a36e32b 100644
--- a/Makefile
+++ b/Makefile
@@ -4,40 +4,33 @@
##
OPENBSD_SETUP_FLAGS = --prefix=/usr/local --installdirs=site --ruby-path=/usr/local/bin/ruby18 --mandir=\$$prefix/man/man1 --siteruby=\$$libdir/ruby/site_ruby --siterubyver=\$$siteruby/1.8
+BUNDLER_FLAGS ?= --path=vendor/bundle --jobs=4 --no-deployment
-all: man man/mauvesend.1 man/mauveserver.1 man/mauveconsole.1
+all: vendor/bundle man/mauvesend.1 man/mauveserver.1 man/mauveconsole.1
man:
mkdir -p man
-man/%.1: bin/%
+man/%.1: bin/% vendor/bundle man
bundle exec $< --manual | txt2man -t $(notdir $<) -s 1 > $@
test -s $@
clean:
$(RM) -r man
- # Theoretically this will clean up the shebang munging done by the openbsd_tarball task below.
- if [ -e ./setup.rb ] ; then \
- ruby ./setup.rb distclean ; \
- ruby ./setup.rb config ; \
- ruby ./setup.rb setup ; \
- 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
- $(RM) setup.rb
$(RM) -r OpenBSD
+ $(RM) -r vendor/bundle
+
+vendor/bundle: Gemfile
+ @bundle install $(BUNDLER_FLAGS)
-test: setup.rb
- ruby ./setup.rb test
+Gemfile.lock: Gemfile
+ @bundle update
-setup.rb: /usr/lib/ruby/1.8/setup.rb
- ln -sf /usr/lib/ruby/1.8/setup.rb .
+test: vendor/bundle
+ @bundle exec rake test
OpenBSD: OpenBSD/sha256.asc