Skip to content

Commit

Permalink
minor makefile love.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed Jul 7, 2011
1 parent 10d3582 commit 2cc02d8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2cc02d8

Please sign in to comment.