diff options
author | Reuben Thomas <rrt@sc3d.org> | 2012-10-04 18:53:33 +0100 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2012-10-04 18:53:33 +0100 |
commit | ed4a8521bd63704dc81284109791f5b33015b85d (patch) | |
tree | 02d3a934755231348fbdea69e9df81809d48357a | |
parent | 275b34b093d908323e1ba24107ddacc5256bd4be (diff) | |
download | lrexlib-ed4a8521bd63704dc81284109791f5b33015b85d.tar.gz |
Makefile: simplify running tests, and error if LUA is not set
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -9,8 +9,9 @@ PROJECT_VERSIONED = $(PROJECT)-$(VERSION) DISTFILE = $(PROJECT_VERSIONED).zip check: + @if test -z "$(LUA)"; then echo "Set LUA to run tests"; exit 1; fi @for i in $(REGNAMES); do \ - cd src/$$i && LUA_PATH="../../test/?.lua;$(LUA_PATH)" $(LUA) ../../test/runtest.lua -d. $$i && cd ../..; \ + LUA_PATH="test/?.lua;$(LUA_PATH)" $(LUA) test/runtest.lua -dsrc/$$i $$i; \ done docs: |