|
lua != which lua
luac != which luac
cortav: cortav.lua
echo '#!$(lua)' > $@
luac -s -o - $< >> $@
chmod +x $@
|
|
>
>
>
|
>
>
>
>
>
>
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
lua != which lua
luac != which luac
extens ?= $(patsubst ext/%.lua,%,$(wildcard ext/*.lua))
extens_srcs = $(patsubst %,ext/%.lua,$(extens))
cortav: sirsem.lua cortav.lua $(extens_srcs) cli.lua
echo '#!$(lua)' > $@
luac -o - $^ >> $@
chmod +x $@
cortav.html: cortav.ct cortav
./cortav $< -o $@ -m render:format html -y html:fossil-uv
.PHONY: syncdoc
syncdoc: cortav.html
fossil uv add $<
fossil uv sync
|