-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
40 lines (31 loc) · 738 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.PHONY: all clean
LUMEN := LUMEN_HOST=luajit lumen
MODS := bin/motor.lua \
bin/linux/socket.lua \
bin/darwin/socket.lua \
bin/buffer.lua \
bin/stream.lua \
bin/http.lua \
bin/pq.lua
all: $(MODS)
clean:
@git checkout bin/*.lua
@rm -f obj/*
bin/pq.lua: pq.l obj/lib.lua
@echo $@
@$(LUMEN) obj/lib.lua -c $< -o $@ -t lua
bin/motor.lua: motor.l obj/lib.lua
@echo $@
@$(LUMEN) obj/lib.lua -c $< -o $@ -t lua
bin/linux/%.lua : lib/linux/%.l obj/lib.lua
@echo $@
@$(LUMEN) obj/lib.lua -c $< -o $@ -t lua
bin/darwin/%.lua : lib/darwin/%.l obj/lib.lua
@echo $@
@$(LUMEN) obj/lib.lua -c $< -o $@ -t lua
obj/%.lua : %.l
@echo " $@"
@$(LUMEN) -c $< -o $@ -t lua
bin/%.lua : %.l
@echo $@
@$(LUMEN) -c $< -o $@ -t lua