Last change
on this file since 75 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
|
Line | |
---|
1 | OS=`uname -s`
|
---|
2 | MACHINE=`uname -m`
|
---|
3 | DATE=`date -r _build/default/cmd/txt/txt.exe +%Y%m%d`
|
---|
4 | COMMIT=`git rev-parse --short HEAD`
|
---|
5 | PREFIX=/usr/local
|
---|
6 |
|
---|
7 | CC=cc
|
---|
8 | LD=cc
|
---|
9 |
|
---|
10 | all:
|
---|
11 | @dune build
|
---|
12 | deps:
|
---|
13 | @opam install dune ocurl cmdliner msgpck
|
---|
14 | txt:
|
---|
15 | @dune build cmd/txt/txt.exe
|
---|
16 | clean:
|
---|
17 | @dune clean
|
---|
18 | dist:
|
---|
19 | @dune build
|
---|
20 | @cp _build/default/cmd/txt/txt.exe txt.exe
|
---|
21 | @strip txt.exe
|
---|
22 | @tar czvf "kosuzu-${OS}-${MACHINE}-${DATE}-${COMMIT}" txt.exe readme.txt
|
---|
23 | @rm txt.exe
|
---|
24 |
|
---|
25 | txt_init:
|
---|
26 | @dune build cmd/txt_init/txt_init.exe
|
---|
27 | install:
|
---|
28 | @dune install --prefix ${PREFIX}
|
---|
29 | uninstall:
|
---|
30 | @dune uninstall --prefix ${PREFIX}
|
---|
31 | .PHONY: txt txt_init
|
---|
Note:
See
TracBrowser
for help on using the repository browser.