diff --git a/Makefile b/Makefile index d03bc69..0be583c 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,26 @@ +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 -tgz: +dist: 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 + tar czvf "logarion-${OS}-${MACHINE}-${DATE}-${COMMIT}" txt.exe readme.txt rm txt.exe htm: