
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/kosuzu/trunk@46 eb64cd80-c68d-6f47-b6a3-0ada418499da
34 lines
609 B
Makefile
34 lines
609 B
Makefile
OS=`uname -s`
|
|
MACHINE=`uname -m`
|
|
DATE=`date -r _build/default/cli/txt.exe +%Y%m%d`
|
|
COMMIT=`git rev-parse --short HEAD`
|
|
|
|
all:
|
|
dune build
|
|
|
|
deps:
|
|
opam install dune ocurl cmdliner=1.0.4 msgpck
|
|
|
|
cli:
|
|
dune build cli/txt.exe
|
|
|
|
clean:
|
|
dune clean
|
|
|
|
dist:
|
|
dune subst
|
|
dune build
|
|
cp _build/default/cli/txt.exe txt.exe
|
|
strip txt.exe
|
|
tar czvf "logarion-${OS}-${MACHINE}-${DATE}-${COMMIT}" 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
|