-
Notifications
You must be signed in to change notification settings - Fork 238
/
Makefile
40 lines (31 loc) · 1001 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
# Unison file synchronizer: Makefile
# See LICENSE for terms.
# IMPORTANT!
#
# This file is portable and compatible with GNU Make, BSD make, Solaris
# (d)make and NMAKE. Do not make any changes in this file unless you are
# certain that the changes do not break this portability.
default: all
.PHONY: default
# Sub-makefiles are perfectly fine for parallel builds.
# This makefile is not, due to recursive invocations of make.
.NOTPARALLEL:
.PHONY: all
all: src manpage
.PHONY: src
src: FRC
cd src && $(MAKE)
FRC: ;
# Not all make seem to work without FRC, even with .PHONY
.PHONY: tui gui macui fsmonitor manpage docs clean depend
tui gui macui fsmonitor manpage docs clean depend:
cd src && $(MAKE) $@
.PHONY: test
test:
ocaml src/make_tools.ml run ./src/unison -ui text -selftest
# Note: unison binary is not built automatically for the test target,
# so as to avoid building it with unwanted configuration.
prefix = /usr/local
.PHONY: install
install:
ocaml src/make_tools.ml install