source: code/trunk/Makefile@ 46

Last change on this file since 46 was 46, checked in by Izuru Yakumo, 2 years ago

Favor BSD-style makefile over GNU

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

File size: 609 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`
5
[2]6all:
7 dune build
[1]8
[46]9deps:
10 opam install dune ocurl cmdliner=1.0.4 msgpck
11
[1]12cli:
[3]13 dune build cli/txt.exe
[1]14
15clean:
16 dune clean
17
[46]18dist:
[2]19 dune subst
20 dune build
[34]21 cp _build/default/cli/txt.exe txt.exe
22 strip txt.exe
[46]23 tar czvf "logarion-${OS}-${MACHINE}-${DATE}-${COMMIT}" txt.exe readme.txt
[34]24 rm txt.exe
[1]25
[33]26htm:
27 rm -f {3sqd84,hvhhwf,ka4wtj,h1a9tg}.htm
28 txt convert readme.txt -t htm
29 txt convert txt/3sqd84.txt -t htm
30 txt convert txt/hvhhwf.txt -t htm
31 txt convert txt/h1a9tg.txt -t htm
32
[2]33.PHONY: cli
Note: See TracBrowser for help on using the repository browser.