Copy default cfg before modifying
[khatus.git] / x3 / Makefile
... / ...
CommitLineData
1MAKEFLAGS := --no-builtin-rules
2
3PREFIX := $(HOME)
4EXE_NAME := khatus_cache_dumper
5EXE_TYPE := native # native | byte
6
7.PHONY: \
8 build \
9 install \
10 clean
11
12build: | 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
22install:
23 $(foreach filename,$(wildcard bin/*),cp -p "$(filename)" "$(PREFIX)/$(filename)"; )
24
25clean:
26 @rm -rf bin
27 @ocamlbuild -clean
28
29bin:
30 @mkdir -p bin
This page took 0.024224 seconds and 4 git commands to generate.