]> git.proxmox.com Git - mirror_libseccomp.git/blame - Makefile.am
docs: add golang bindings pointer to README.md
[mirror_libseccomp.git] / Makefile.am
CommitLineData
54a87cb7
PM
1####
2# Seccomp Library
3#
4
5#
6# This library is free software; you can redistribute it and/or modify it
7# under the terms of version 2.1 of the GNU Lesser General Public License
8# as published by the Free Software Foundation.
9#
10# This library is distributed in the hope that it will be useful, but
11# WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
13# General Public License for more details.
14#
15# You should have received a copy of the GNU Lesser General Public License
16# along with this library; if not, see <http://www.gnu.org/licenses>.
17#
c92404d0
JE
18
19ACLOCAL_AMFLAGS = -I m4
fd42fda8 20SUBDIRS = include src tools tests doc
c92404d0
JE
21
22pkgconfdir = ${libdir}/pkgconfig
23pkgconf_DATA = libseccomp.pc
0a579bb4 24
e60ae345 25EXTRA_DIST = CHANGELOG CREDITS LICENSE README.md CONTRIBUTING.md
97e09041 26
0a579bb4
PM
27# support silent builds
28AM_MAKEFLAGS_0 = --quiet --no-print-directory
29AM_MAKEFLAGS_1 =
30AM_MAKEFLAGS_ = ${AM_MAKEFLAGS_0}
31AM_MAKEFLAGS = ${AM_MAKEFLAGS_@AM_V@}
b7870b95 32
e8a449fb 33check-build: all
10383c95 34 ${MAKE} ${AM_MAKEFLAGS} -C src check-build
e8a449fb
PM
35 ${MAKE} ${AM_MAKEFLAGS} -C tests check-build
36
b7870b95
PM
37check-syntax:
38 @./tools/check-syntax
b61f4065 39
30be87ef 40if CODE_COVERAGE_ENABLED
a6977639
PM
41check-code-coverage: check-build
42 ${MAKE} ${AM_MAKEFLAGS} -C tests check-code-coverage
30be87ef
PM
43endif
44
45if CODE_COVERAGE_ENABLED
46test-code-coverage: check-build
47 ${MAKE} ${AM_MAKEFLAGS} -C src check-code-coverage
48 LIBSECCOMP_TSTCFG_TYPE=basic \
49 ${MAKE} ${AM_MAKEFLAGS} check-code-coverage
50 LIBSECCOMP_TSTCFG_TYPE=bpf-sim \
51 ${MAKE} ${AM_MAKEFLAGS} check-code-coverage
52endif
a6977639 53
b61f4065
PM
54if COVERITY
55coverity-build: clean
56 cov-build --dir cov-int ${MAKE} ${AM_MAKEFLAGS} check-build
57endif
58
59if COVERITY
60coverity-tarball: coverity-build
f6c21970
PM
61 @if git rev-parse HEAD &> /dev/null; then \
62 rev_full=$$(git rev-parse HEAD); \
63 rev=$$(echo $$rev_full | cut -c1-8); \
64 else \
65 rev_full=$$(date --iso-8601=date); \
66 rev=$$rev_full; \
67 fi; \
b61f4065 68 tar czf libseccomp-coverity_$$rev.tar.gz cov-int; \
f6c21970 69 echo " HEAD revision: $$rev_full"; \
b61f4065
PM
70 ls -l libseccomp-coverity_$$rev.tar.gz
71endif
72
73clean-local:
74 ${RM} -rf cov-int libseccomp-coverity_*.tar.gz