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
|
Rev | Line | |
---|
[46] | 1 | OS=`uname -s`
|
---|
| 2 | MACHINE=`uname -m`
|
---|
[73] | 3 | DATE=`date -r _build/default/cmd/txt/txt.exe +%Y%m%d`
|
---|
[46] | 4 | COMMIT=`git rev-parse --short HEAD`
|
---|
[51] | 5 | PREFIX=/usr/local
|
---|
[46] | 6 |
|
---|
[48] | 7 | CC=cc
|
---|
| 8 | LD=cc
|
---|
| 9 |
|
---|
[2] | 10 | all:
|
---|
[64] | 11 | @dune build
|
---|
[46] | 12 | deps:
|
---|
[68] | 13 | @opam install dune ocurl cmdliner msgpck
|
---|
[73] | 14 | txt:
|
---|
| 15 | @dune build cmd/txt/txt.exe
|
---|
[1] | 16 | clean:
|
---|
[64] | 17 | @dune clean
|
---|
[46] | 18 | dist:
|
---|
[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 |
|
---|
| 25 | txt_init:
|
---|
| 26 | @dune build cmd/txt_init/txt_init.exe
|
---|
[51] | 27 | install:
|
---|
[64] | 28 | @dune install --prefix ${PREFIX}
|
---|
[51] | 29 | uninstall:
|
---|
[64] | 30 | @dune uninstall --prefix ${PREFIX}
|
---|
[73] | 31 | .PHONY: txt txt_init
|
---|
Note:
See
TracBrowser
for help on using the repository browser.