-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
72 lines (58 loc) · 1.8 KB
/
Makefile.am
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
# Makefile.am for wren-vala
# https://github.com/cxw42/wren-vala
# Copyright (c) 2021 Christopher White. All rights reserved.
# SPDX-License-Identifier: MIT
include $(top_srcdir)/rules.mk
ACLOCAL_AMFLAGS = -I m4 -I m4-bundled
SUBDIRS = wren-pkg src t doc
EXTRA_DIST = \
bootstrap \
README.md \
tap-driver.sh \
tap-test \
.gitignore \
.uncrustifyrc \
$(EOL)
# Since we always regenerate the Vala source, we update files in src/ .
# As a result, normal distcheck (RO src/ directory) fails. Rather than
# giving up on distcheck entirely, permit modifying src/ .
distcheck-hook:
chmod -R u+w $(distdir)
# --- Code hygiene -------------------------------------------
phony += prettyprint
prettyprint:
-$(AM_V_GEN)uncrustify -l VALA -c $(top_srcdir)/.uncrustifyrc --replace \
$(vala_all_sources) \
t/000-sanity-t.vala \
t/090-util-t.vala \
t/105-tramp-t.vala \
t/100-vmv-t.vala \
t/110-hello-world-s.vala \
t/120-read-var-from-wren-t.vala \
t/130-call-wren-t.vala \
t/140-roundtrip-data-t.vala \
t/150-marshal-t.vala \
t/200-expose-class-t.vala \
t/210-marshal-class-t.vala \
$(EOL)
-$(AM_V_GEN)uncrustify -c $(top_srcdir)/.uncrustifyrc --replace \
$(c_all_sources) \
$(EOL)
phony += p
p: prettyprint
-ctags -R --exclude='doc/*' --exclude='wren-vala-coverage/*'
phony += cleanwren
cleanwren:
-cd wren-pkg/wren && git clean -dfx
# --- Testing ------------------------------------------------
# Shortcuts for tests
phony += test
test: check
phony += build-tests
build-tests: all
+$(MAKE) -C t $@
# --- Coverage -----------------------------------------------
# Used by coverage.sh --- remove the existing code-coverage data.
remove-code-coverage-data:
-rm -rf "$(CODE_COVERAGE_OUTPUT_FILE)" "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "$(CODE_COVERAGE_OUTPUT_DIRECTORY)"
-find . -name "*.gcda" -delete