Permalink
Browse files

Dependency check

  • Loading branch information...
1 parent 4100f17 commit 23579f9c49e983dd7c1cd58f6a16941cbc2deb8f Tomohiro Matsuyama committed Mar 24, 2013
Showing with 15 additions and 2 deletions.
  1. +15 −2 Makefile
View
@@ -2,8 +2,21 @@ VERSION=`perl -ne 'print $$1 if /;; Version: (.*)/' auto-complete.el`
PACKAGE=auto-complete-${VERSION}
EMACS=emacs
-byte-compile:
- ${EMACS} -Q -L . -batch -f batch-byte-compile auto-complete.el auto-complete-config.el
+lib/popup/popup.el:
+ @echo 'Please place popup.el in lib/popup or do "git submodule init; git submodule update".'
+ @exit 1
+
+lib/fuzzy/fuzzy.el:
+ @echo 'Please place fuzzy.el in lib/fuzzy or do "git submodule init; git submodule update".'
+ @exit 1
+
+check-dependency: lib/popup/popup.el lib/fuzzy/fuzzy.el
+
+byte-compile: check-dependency
+ ${EMACS} -Q -L . -L lib/popup -L lib/fuzzy -batch -f batch-byte-compile auto-complete.el auto-complete-config.el
+
+test: check-dependency
+ ${EMACS} -batch -Q -l tests/run-test.el
install:
${EMACS} -Q -L . -batch -l etc/install ${DIR}

0 comments on commit 23579f9

Please sign in to comment.