forked from bcpierce00/unison
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (48 loc) · 1.34 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Unison file synchronizer: Makefile
# See LICENSE for terms.
# 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:
$(MAKE) -C src
# It's a wart that docs need "unison" built (vs some docs utility).
.PHONY: docs
docs: src manpage
$(MAKE) -C doc
# "src" is a prerequisite to prevent parallel build errors.
# manpage builds currently require a pre-built "unison" binary.
.PHONY: manpage
manpage: src
$(MAKE) -C man
.PHONY: test
test: ./src/unison
./src/unison -ui text -selftest
.PHONY: depend
depend:
$(MAKE) -C src depend
.PHONY: clean
clean:
$(MAKE) -C doc clean
$(MAKE) -C man clean
$(MAKE) -C src clean
.PHONY: install
install:
@printf "\n\n=========================================\n\
To install, copy the files src/unison, src/unison-gui (optional),\n\
src/unison-fsmonitor (optional) and src/fsmonitor.py (optional,\n\
if unison-fsmonitor does not exist) to a freely chosen location.\n\n\
Manual page is at man/unison.1 and user manual is at\n\
doc/unison-manual.pdf, doc/unison-manual.html and doc/unison-manual.txt\n\
=========================================\n\n\n"
@exit 1
# Delegate other targets to the sub-makefile
.PHONY: Makefile
./src/%:
$(MAKE) -C src $*
%: FORCE
$(MAKE) -C src $@
.PHONY: FORCE
FORCE: ;