summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorrenan-ranelli <renanranelli@gmail.com>2014-11-24 02:16:33 -0200
committerrenan-ranelli <renanranelli@gmail.com>2014-11-24 02:40:54 -0200
commit4dbe38c68f01f0e30cffac9500e86dbef08ce09b (patch)
tree114eb8e231cd23d6548831ef10d9bac403f82114 /Makefile
parent3c85640bb42c0fbe586255336d4bef27d942b515 (diff)
downloadbog-4dbe38c68f01f0e30cffac9500e86dbef08ce09b.tar.gz
Add Makefile and test target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ff1296a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+EMACS := emacs
+CURL := curl --silent
+
+DASH_URL := https://raw.githubusercontent.com/magnars/dash.el/master/dash.el
+
+.PHONY: test
+
+test: .downloads
+ ${EMACS} -Q --batch -L . \
+ -l bog-tests \
+ --eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))"
+
+.downloads:
+ ${CURL} ${DASH_URL} > dash.el
+ touch .downloads
+
+clean:
+ @rm -rf maven-test-mode-*/ maven-test-mode-*.tar *.elc