Copy default cfg before modifying
[khatus.git] / x3 / Makefile
1 MAKEFLAGS := --no-builtin-rules
2
3 PREFIX := $(HOME)
4 EXE_NAME := khatus_cache_dumper
5 EXE_TYPE := native # native | byte
6
7 .PHONY: \
8 build \
9 install \
10 clean
11
12 build: | bin
13 @ocamlbuild \
14 -cflags '-w A' \
15 -pkg unix \
16 -I src/exe \
17 -I src/lib \
18 $(EXE_NAME).$(EXE_TYPE)
19 @mv _build/src/exe/$(EXE_NAME).$(EXE_TYPE) bin/$(EXE_NAME)
20 @rm -f $(EXE_NAME).$(EXE_TYPE)
21
22 install:
23 $(foreach filename,$(wildcard bin/*),cp -p "$(filename)" "$(PREFIX)/$(filename)"; )
24
25 clean:
26 @rm -rf bin
27 @ocamlbuild -clean
28
29 bin:
30 @mkdir -p bin
This page took 0.067681 seconds and 4 git commands to generate.