-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (39 loc) · 980 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Makefile
# --------
# Copyright : (c) 2009, Jeremie Dimino <[email protected]>
# Licence : BSD3
#
# This file is a part of [kro]bot.
PREFIX := $(HOME)
OC := ocamlbuild -classic-display
OF := ocamlfind
.PHONY: all
all:
$(OC) all
.PHONY: clean
clean:
$(OC) -clean
.PHONY: install
install:
$(OF) install krobot META \
$(wildcard lib-krobot/*.mli) \
$(wildcard common/*.mli) \
$(wildcard protocol/*.mli) \
$(wildcard _build/lib-krobot/*.cmi) \
$(wildcard _build/common/*.cmi) \
$(wildcard _build/protocol/*.cmi) \
$(wildcard _build/lib-krobot/*.cmx) \
$(wildcard _build/common/*.cmx) \
$(wildcard _build/protocol/*.cmx) \
$(wildcard _build/*.cma) \
$(wildcard _build/*.cmxa) \
$(wildcard _build/*.cmxs) \
$(wildcard _build/*.a)
@/bin/bash install-programs.sh $(PREFIX)
.PHONY: uninstall
uninstall:
$(OF) remove krobot
rm -vf $(PREFIX)/bin/krobot-*
rm -rvf $(PREFIX)/share/krobot
.PHONY: reinstall
reinstall: uninstall install