forked from seomoz/qless-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
21 lines (17 loc) · 711 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
all: qless.lua qless-lib.lua
qless-lib.lua: base.lua config.lua job.lua queue.lua recurring.lua worker.lua
echo "-- Current SHA: `git rev-parse HEAD`" > qless-lib.lua
echo "-- This is a generated file" >> qless-lib.lua
cat base.lua config.lua job.lua queue.lua recurring.lua worker.lua >> qless-lib.lua
qless.lua: qless-lib.lua api.lua
# Cat these files out, but remove all the comments from the source
echo "-- Current SHA: `git rev-parse HEAD`" > qless.lua
echo "-- This is a generated file" >> qless.lua
cat qless-lib.lua api.lua | \
egrep -v '^[[:space:]]*--[^\[]' | \
egrep -v '^--$$' >> qless.lua
clean:
rm -f qless.lua qless-lib.lua
.PHONY: test
test: qless.lua *.lua
nosetests --exe -v