logarion/Makefile

19 lines
331 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
strip txt
tar czvf "logarion-$(shell date -r _build/default/cli/cli.exe "+%y-%m-%d")-$(shell uname -s)-$(shell uname -m)-$(shell git rev-parse --short HEAD).tar.gz" txt readme
rm txt
.PHONY: cli