-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathMakefile
41 lines (29 loc) · 991 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
41
LUA = lua
DIST = ./dist
LIB = ./lib
LIB_TEST = $(LIB)/test.lua
LIB_NEBLUA = $(LIB)/neblua.lua
build: build-psd build-lcd-pixel-filter build-icon-and-cursor build-smooth-filter
build-psd: $(DIST) $(LIB_NEBLUA)
DIST_DIR=$(DIST) $(LUA) ./psd/build.lua
build-lcd-pixel-filter: $(DIST) $(LIB_NEBLUA)
DIST_DIR=$(DIST) $(LUA) ./lcd-pixel-filter/build.lua
build-icon-and-cursor: $(DIST) $(LIB_NEBLUA)
DIST_DIR=$(DIST) $(LUA) ./icon-and-cursor/build.lua
build-smooth-filter: $(DIST) $(LIB_NEBLUA)
DIST_DIR=$(DIST) $(LUA) ./smooth-filter/build.lua
prepare: $(LIB_TEST) $(LIB_NEBLUA)
$(DIST):
mkdir -p $(DIST)
$(LIB):
mkdir -p $(LIB)
$(LIB_TEST): $(LIB)
curl -sSL https://github.com/Tsukina-7mochi/lua-testing-library/releases/latest/download/test.lua > $(LIB_TEST)
$(LIB_NEBLUA): $(LIB)
curl -sSL https://github.com/Tsukina-7mochi/neblua/releases/latest/download/neblua.lua > $(LIB_NEBLUA)
.PHONY: test
test: $(LIB_TEST)
$(LUA) pkg/test.lua
.PHONY: clean
clean:
rm -rf $(DIST)