source:
code/trunk/Makefile@
77
Last change on this file since 77 was 77, checked in by , 4 days ago | |
---|---|
File size: 563 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` |
[51] | 4 | PREFIX=/usr/local |
[46] | 5 | |
[48] | 6 | CC=cc |
7 | LD=cc | |
8 | ||
[2] | 9 | all: |
[64] | 10 | @dune build |
[46] | 11 | deps: |
[68] | 12 | @opam install dune ocurl cmdliner msgpck |
[73] | 13 | txt: |
14 | @dune build cmd/txt/txt.exe | |
[1] | 15 | clean: |
[64] | 16 | @dune clean |
[46] | 17 | dist: |
[64] | 18 | @dune build |
[73] | 19 | @cp _build/default/cmd/txt/txt.exe txt.exe |
[64] | 20 | @strip txt.exe |
[77] | 21 | @tar czvf "kosuzu-${OS}-${MACHINE}-${DATE}" txt.exe LICENSE README.md |
[64] | 22 | @rm txt.exe |
[73] | 23 | |
24 | txt_init: | |
25 | @dune build cmd/txt_init/txt_init.exe | |
[51] | 26 | install: |
[64] | 27 | @dune install --prefix ${PREFIX} |
[51] | 28 | uninstall: |
[64] | 29 | @dune uninstall --prefix ${PREFIX} |
[73] | 30 | .PHONY: txt txt_init |
Note:
See TracBrowser
for help on using the repository browser.