-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (29 loc) · 878 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_VERSION = lua
LUA = lua -e "require'pkglib'()"
.PHONY: ele
all: test demo
test: build
mkdir -p ./.out/
# make test
$(LUA) test.lua
# Tests complete
demo: build
$(PRETEST) $(LUA) lib/vt100/demo.lua
# $(PRETEST) $(LUA) cmd/ele/demo_term.lua
build: fd civix smol
fd: lib/fd/fd.c
cd lib/fd && make build LUA_VERSION=$(LUA_VERSION)
civix: lib/civix/civix/lib.c
cd lib/civix && make build LUA_VERSION=$(LUA_VERSION)
smol: lib/smol/smol.c
cd lib/smol && make test LUA_VERSION=$(LUA_VERSION)
cd lib/smol && make build LUA_VERSION=$(LUA_VERSION)
ele: build
$(LUA) cmd/ele/ele.lua
doc:
mkdir -p ./.out/
$(LUA) civ.lua doc civ pkg --pkg=deep --expand --to=.out/README.cxt
$(LUA) civ.lua cxt.html .out/README.cxt README.html --config=PKG.lua
clean:
rm -f $$($(LUA) civ.lua ff -r --fpat='%.rockspec$$')
rm -f $$($(LUA) civ.lua ff -r --fpat='%.src%.rock$$')