OS=`uname -s` MACHINE=`uname -m` DATE=`date -r _build/default/cmd/txt/txt.exe +%Y%m%d` COMMIT=`git rev-parse --short HEAD` PREFIX=/usr/local CC=cc LD=cc all: @dune build deps: @opam install dune ocurl cmdliner msgpck txt: @dune build cmd/txt/txt.exe clean: @dune clean dist: @dune build @cp _build/default/cmd/txt/txt.exe txt.exe @strip txt.exe @tar czvf "kosuzu-${OS}-${MACHINE}-${DATE}-${COMMIT}" txt.exe readme.txt @rm txt.exe txt_init: @dune build cmd/txt_init/txt_init.exe install: @dune install --prefix ${PREFIX} uninstall: @dune uninstall --prefix ${PREFIX} .PHONY: txt txt_init