forked from a2o/snoopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
114 lines (89 loc) · 2.05 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
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
103
104
105
106
107
108
109
110
111
112
113
114
### Include common Makefile configuration
#
include $(top_srcdir)/build/Makefile.am.common
### Local configuration changes
#
AUTOMAKE_OPTIONS = foreign subdir-objects
ACLOCAL_AMFLAGS = -I build/m4
### Subdir processing order
#
# Process etc/ before other subdirs
#
# If Snoopy has config file enabled, then there is a small time frame
# between installation of library and subsequent installation of
# initial configuration file where iniparser emits an error about
# configuration file not being found. Therefore we first install
# configuration file and only then the Snoopy library itself.
#
# Also, lib/ must be processed before src/, as iniparser is needed
# there if config file is enabled.
#
SUBDIRS =
if CONFIGFILE_ENABLED
SUBDIRS += etc
SUBDIRS += lib
endif
SUBDIRS += src
SUBDIRS += util
SUBDIRS += doc
SUBDIRS += tests
### Additional files to distribute in distribution package
#
EXTRA_DIST = \
build/get-version.sh \
README.md
### Make check aliases
#
checks: check
test: check
tests: check
### Enable/disable targets
#
enable: install
echo ; \
$(top_builddir)/util/snoopy-enable ; \
echo ;
disable:
echo ; \
$(top_builddir)/util/snoopy-disable \
echo ;
# Disable it if we are uninstalling it, to avoid error messages
# about missing library that should be preloaded.
uninstall-local: disable
### Clean these files additionally
#
# Clean release files
clean-local:
rm -rf snoopy-[0-9].[0-9].* ; \
rm -f snoopy-*.tar.gz* ; \
rm -f snoopy-latest-*.txt ; \
rm -rf cov-int* ;
# Clean all files that were generated by bootstrap.sh or autoscan
maintainer-clean-local:
rm -f aclocal.m4 ; \
rm -f autoscan.log ; \
rm -fr build/aux/ ; \
rm -fr build/m4/ ; \
rm -f configure ;
### Maintainer targets
#
#
# Bootstrap: simplify maintainer's life
#
.PHONY: bootstrap
bootstrap: maintainer-clean
./bootstrap.sh
#
#
# Valgrind: run valgrind
#
.PHONY: valgrind
valgrind: all
valgrind -v \
--error-exitcode=1 \
--track-fds=yes \
--smc-check=all \
--leak-check=full \
--undef-value-errors=yes \
--track-origins=yes \
./util/snoopy-run-everything ;