Favor BSD-style makefile over GNU
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/kosuzu/trunk@46 eb64cd80-c68d-6f47-b6a3-0ada418499da
This commit is contained in:
12
Makefile
12
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:
|
||||
|
||||
Reference in New Issue
Block a user