]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/context-coloring/Makefile
Merge commit '40f67bf039c143758ac070f9693bb0af87b98aba' from context-coloring
[gnu-emacs-elpa] / packages / context-coloring / Makefile
index bd82b883addfc194897e9c657a83e5e8f5022cd4..0b370430859399223874f8d957c74a9c2ed07b2a 100644 (file)
@@ -1,6 +1,8 @@
 CASK = cask
 EMACS = emacs
 DEPENDENCIES = .cask/
+SCOPIFIER_PORT = $$(lsof -t -i :6969)
+KILL_SCOPIFIER = if [ -n "${SCOPIFIER_PORT}" ]; then kill ${SCOPIFIER_PORT}; fi
 
 all: uncompile compile test
 
@@ -26,6 +28,7 @@ ${DEPENDENCIES}:
        ${CASK}
 
 test: ${DEPENDENCIES}
+       ${KILL_SCOPIFIER}
        ${CASK} exec ${EMACS} -Q -batch \
        -L . \
        -l ert \
@@ -36,6 +39,7 @@ test: ${DEPENDENCIES}
        -f ert-run-tests-batch-and-exit
 
 cover: ${DEPENDENCIES}
+       ${KILL_SCOPIFIER}
        ${CASK} exec ${EMACS} -Q -batch \
        -L . \
        -l ert \