source: code/trunk/Makefile@ 52

Last change on this file since 52 was 51, checked in by Izuru Yakumo, 20 months ago

Update build system settings

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 534 bytes
RevLine 
[46]1OS=`uname -s`
2MACHINE=`uname -m`
3DATE=`date -r _build/default/cli/txt.exe +%Y%m%d`
4COMMIT=`git rev-parse --short HEAD`
[51]5PREFIX=/usr/local
[46]6
[48]7CC=cc
8LD=cc
9
[2]10all:
11 dune build
[1]12
[46]13deps:
14 opam install dune ocurl cmdliner=1.0.4 msgpck
15
[1]16cli:
[3]17 dune build cli/txt.exe
[1]18
19clean:
20 dune clean
21
[46]22dist:
[2]23 dune build
[34]24 cp _build/default/cli/txt.exe txt.exe
25 strip txt.exe
[46]26 tar czvf "logarion-${OS}-${MACHINE}-${DATE}-${COMMIT}" txt.exe readme.txt
[34]27 rm txt.exe
[51]28install:
29 dune install --prefix ${PREFIX}
30uninstall:
31 dune uninstall --prefix ${PREFIX}
[1]32
[33]33
[2]34.PHONY: cli
Note: See TracBrowser for help on using the repository browser.