-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
102 lines (76 loc) · 1.9 KB
/
Copy pathMakefile
File metadata and controls
102 lines (76 loc) · 1.9 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#
# Copyright 2016 Software Freedom Conservancy Inc.
#
# This Makefile is for developer convenience, and is optimised for
# development work, not production. Packagers should invoke meson and
# ninja directly. See INSTALL for further information.
CONFIGURE := meson \
--buildtype debug \
--warnlevel 3 \
-Dvaladoc=true \
-Dref_tracking=true
MAKE := ninja
BUILD_DIR := build
BINARIES := geary geary-console geary-mailer
BUILD_ARTIFACTS := \
$(BUILD_DIR)/src/geary \
$(BUILD_DIR)/src/console/geary-console \
$(BUILD_DIR)/src/mailer/geary-mailer \
$(BUILD_DIR)/src/valadoc
.DEFAULT: all
.PHONY: all
all: compile $(BINARIES)
.PHONY: verbose
verbose: compile-verbose $(BINARIES)
.PHONY: compile
compile: $(BUILD_DIR)
@$(MAKE) -C $(BUILD_DIR)
.PHONY: compile-verbose
compile-verbose: $(BUILD_DIR)
@$(MAKE) -C $(BUILD_DIR) -v
.PHONY: install
install: compile
@$(MAKE) -C $(BUILD_DIR) $@
.PHONY: uninstall
uninstall: compile
@$(MAKE) -C $(BUILD_DIR) $@
.PHONY: geary-pot
geary-pot: compile
@$(MAKE) -C $(BUILD_DIR) $@
# Keep the olde rule For compatibility
.PHONY: pot_file
pot_file: geary-pot
.PHONY: clean
clean: $(BUILD_DIR)
@-$(MAKE) -C $(BUILD_DIR) $@
.PHONY: distclean
distclean:
@-rm -rf $(BUILD_DIR)
@-rm -rf $(BINARIES)
@-rm -rf valadoc
@-rm -f po/geary.pot
.PHONY: test
test: $(BUILD_DIR)
@$(MAKE) -C $(BUILD_DIR) $@
.PHONY: test-engine
test-engine: $(BUILD_DIR)
cd $(BUILD_DIR) && meson test engine-tests
.PHONY: test-client
test-client: $(BUILD_DIR)
cd $(BUILD_DIR) && meson test client-tests
.PHONY: dist
dist: test
@$(MAKE) -C $(BUILD_DIR) $@
@cp -v $(BUILD_DIR)/meson-dist/*.xz* ..
# The rest of these are actual files
$(BUILD_DIR):
@$(CONFIGURE) $@
valadoc: $(BUILD_DIR)/src/valadoc
cp -r $< .
geary: $(BUILD_DIR)/src/geary
cp $< .
geary-console: $(BUILD_DIR)/src/console/geary-console
cp $< .
geary-mailer: $(BUILD_DIR)/src/mailer/geary-mailer
cp $< .
$(BUILD_ARTIFACTS): compile