logarion/Makefile

26 lines
529 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 uname -s)-$(shell uname -m)-$(shell date -r _build/default/cli/txt.exe "+%y%m%d")-$(shell git rev-parse --short HEAD).tgz" 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