26 lines
534 B
Makefile
26 lines
534 B
Makefile
all:
|
|
dune build
|
|
|
|
cli:
|
|
dune build cli/txt.exe
|
|
|
|
clean:
|
|
dune clean
|
|
|
|
tgz:
|
|
dune subst
|
|
dune build
|
|
cp _build/default/cli/txt.exe txt.exe
|
|
strip txt.exe
|
|
tar czvf "logarion-$(shell date -r _build/default/cli/txt.exe "+%y-%m-%d")-$(shell uname -s)-$(shell uname -m)-$(shell git rev-parse --short HEAD).tar.gz" txt.exe readme.txt
|
|
rm txt.exe
|
|
|
|
htm:
|
|
rm -f {3sqd84,hvhhwf,ka4wtj,h1a9tg}.htm
|
|
txt convert readme.txt -t htm
|
|
txt convert txt/3sqd84.txt -t htm
|
|
txt convert txt/hvhhwf.txt -t htm
|
|
txt convert txt/h1a9tg.txt -t htm
|
|
|
|
.PHONY: cli
|