source: code/trunk/Makefile@ 55

Last change on this file since 55 was 55, checked in by yakumo.izuru, 18 months ago

Add target to generate docs

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

File size: 556 bytes
Line 
1OS=`uname -s`
2MACHINE=`uname -m`
3DATE=`date -r _build/default/cli/txt.exe +%Y%m%d`
4COMMIT=`git rev-parse --short HEAD`
5PREFIX=/usr/local
6
7CC=cc
8LD=cc
9
10all:
11 dune build
12
13deps:
14 opam install dune ocurl cmdliner=1.0.4 msgpck
15
16cli:
17 dune build cli/txt.exe
18
19clean:
20 dune clean
21
22dist:
23 dune build
24 cp _build/default/cli/txt.exe txt.exe
25 strip txt.exe
26 tar czvf "logarion-${OS}-${MACHINE}-${DATE}-${COMMIT}" txt.exe readme.txt
27 rm txt.exe
28docs:
29 ${MAKE} -C txt
30install:
31 dune install --prefix ${PREFIX}
32uninstall:
33 dune uninstall --prefix ${PREFIX}
34
35
36.PHONY: cli
Note: See TracBrowser for help on using the repository browser.