Permalink
Browse files

minor makefile love.

  • Loading branch information...
agentzh committed Jul 7, 2011
1 parent 10d3582 commit 2cc02d81ee9b3bcc4a20ee915d6461c62cd49ba5
Showing with 6 additions and 1 deletion.
  1. +6 −1 Makefile
View
@@ -2,7 +2,7 @@ version=0.03
name=lua-redis-parser
dist=$(name)-$(version)
-.PHONE: all clean dist test
+.PHONY: all clean dist test t
#CC = gcc
RM = rm -f
@@ -56,6 +56,11 @@ valtest: parser.so
cp parser.so lz/
LUA_CPATH="$$HOME/work/lua-cjson-1.0.2/?.so;;" TEST_LUA_USE_VALGRIND=1 prove -r t
+t: parser.so
+ if [ ! -d lz ]; then mkdir lz; fi
+ cp parser.so lz/
+ LUA_CPATH="$$HOME/work/lua-cjson-1.0.2/?.so;;" TEST_LUA_USE_VALGRIND=1 prove t/sanity.t
+
dist:
if [ -d $(dist) ]; then rm -r $(dist); fi
mkdir $(dist)

0 comments on commit 2cc02d8

Please sign in to comment.