aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2015-09-27 13:44:20 -0400
committerTeddy Wing2015-09-27 13:44:20 -0400
commit86f333eb61480bf8f3baca4f713d4e8f488f28f5 (patch)
tree7eea2ab247ed24b194fc0a46523edb82de5794d9 /Makefile
parent2a88fb92f4c1fbb3533e589d5c9f4b5c17595d3f (diff)
downloadgit-hook-pre-commit-python-javascript-syntax-linter-86f333eb61480bf8f3baca4f713d4e8f488f28f5.tar.bz2
Makefile: Simplify `test` target
Remove all the conditions and code copied from Vcsh and only do the bare minimum necessary to run tests. This will bork in more unexpected ways if `git` or `prove` aren't present, but it allows us to get rid of the only GPL-licensed code in the codebase, freeing me up to license the project in any way I want.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index adefdd2..74d5c6a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,3 @@
-# Copied from Richard Hartmann's vcsh:
-# https://github.com/RichiH/vcsh/blob/master/Makefile
test:
- @if which git > /dev/null; then : ; else echo "'git' not found, exiting..." ; exit 1; fi
- @if which prove > /dev/null; then source virtualenv/bin/activate; prove; else echo "'prove' not found; not running tests"; fi
+ source virtualenv/bin/activate; \
+ prove