forked from xapi-project/xcp-networkd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 839 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
BINDIR ?= /usr/bin
SBINDIR ?= /usr/sbin
MANDIR ?= /usr/share/man/man1
.PHONY: release build install uninstall clean test doc reindent
release:
jbuilder build @install @networkd/man
build:
jbuilder build @install @networkd/man --dev
install:
mkdir -p $(DESTDIR)$(SBINDIR)
cp _build/default/networkd/networkd.exe $(DESTDIR)$(SBINDIR)/xcp-networkd
mkdir -p $(DESTDIR)$(MANDIR)
cp _build/default/networkd/xcp-networkd.1 $(DESTDIR)$(MANDIR)/xcp-networkd.1
mkdir -p $(DESTDIR)$(BINDIR)
cp _build/default/networkd_db/networkd_db.exe $(DESTDIR)$(BINDIR)/networkd_db
uninstall:
rm -f $(DESTDIR)$(SBINDIR)/xcp-networkd
rm -f $(DESTDIR)$(MANDIR)/xcp-networkd.1
rm -f $(DESTDIR)$(SBINDIR)/networkd_db
clean:
jbuilder clean
test:
jbuilder runtest
# requires odoc
doc:
jbuilder build @doc
reindent:
ocp-indent --inplace **/*.ml*