source: code/trunk/Makefile@ 74

Last change on this file since 74 was 73, checked in by Izuru Yakumo, 8 months ago

Because sweet girls are the best, officially rebranding Logarion to Kosuzu

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

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