]> code.delx.au - gnu-emacs-elpa/blobdiff - Makefile
company-gtags: add arguments insertion
[gnu-emacs-elpa] / Makefile
index db28faf606a141c993879be48d2ff1e827de37ef..4d7a9ad1c3cbaac6d37483a9915e0d0671c5201e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,8 @@
 EMACS=emacs
+CURL=curl --silent
+ERT_URL=http://git.savannah.gnu.org/cgit/emacs.git/plain/lisp/emacs-lisp/ert.el?h=emacs-24.3
+
+.PHONY: ert test test-batch
 
 package: *.el
        @ver=`grep -o "Version: .*" company.el | cut -c 10-`; \
@@ -15,13 +19,19 @@ elpa: *.el
        tar cvf company-$$version.tar --mode 644 "$$dir"
 
 clean:
-       @rm -rf company-*/ company-*.tar company-*.tar.bz2
+       @rm -rf company-*/ company-*.tar company-*.tar.bz2 *.elc ert.el
 
 test:
-       ${EMACS} -Q -nw --eval "(add-to-list 'load-path \".\")" \
-       -l company-tests.el --eval "(ert t)"
+       ${EMACS} -Q -nw -L . -l company-tests.el -l company-elisp-tests.el \
+       --eval "(let (pop-up-windows) (ert t))"
 
 test-batch:
-       ${EMACS} -Q --batch --eval "(add-to-list 'load-path \".\")" \
-       -l company-tests.el --eval "(ert-run-tests-batch-and-exit \
-         '(not (tag interactive)))"
+       ${EMACS} -Q --batch -L . -l company-tests.el -l company-elisp-tests.el \
+       --eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))"
+
+downloads:
+       ${EMACS} -Q --batch -l ert || \
+       ${CURL} ${ERT_URL} > ert.el
+
+compile:
+       ${EMACS} -Q --batch -L . -f batch-byte-compile company.el company-*.el