]> git.proxmox.com Git - mirror_libseccomp.git/blame - Makefile.am
python: install the python extension to the root package dir
[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
a9745ef2
PM
25EXTRA_DIST = \
26 CHANGELOG CREDITS LICENSE \
3f214cbb 27 README.md CONTRIBUTING.md
97e09041 28
0a579bb4
PM
29# support silent builds
30AM_MAKEFLAGS_0 = --quiet --no-print-directory
31AM_MAKEFLAGS_1 =
32AM_MAKEFLAGS_ = ${AM_MAKEFLAGS_0}
33AM_MAKEFLAGS = ${AM_MAKEFLAGS_@AM_V@}
b7870b95 34
8ad3638e
PM
35# enable python during distcheck
36AM_DISTCHECK_CONFIGURE_FLAGS = --enable-python
37
e8a449fb 38check-build: all
10383c95 39 ${MAKE} ${AM_MAKEFLAGS} -C src check-build
e8a449fb
PM
40 ${MAKE} ${AM_MAKEFLAGS} -C tests check-build
41
b7870b95
PM
42check-syntax:
43 @./tools/check-syntax
b61f4065 44
30be87ef 45if CODE_COVERAGE_ENABLED
a6977639
PM
46check-code-coverage: check-build
47 ${MAKE} ${AM_MAKEFLAGS} -C tests check-code-coverage
30be87ef
PM
48endif
49
50if CODE_COVERAGE_ENABLED
51test-code-coverage: check-build
52 ${MAKE} ${AM_MAKEFLAGS} -C src check-code-coverage
53 LIBSECCOMP_TSTCFG_TYPE=basic \
54 ${MAKE} ${AM_MAKEFLAGS} check-code-coverage
55 LIBSECCOMP_TSTCFG_TYPE=bpf-sim \
56 ${MAKE} ${AM_MAKEFLAGS} check-code-coverage
57endif
a6977639 58
b61f4065
PM
59if COVERITY
60coverity-build: clean
61 cov-build --dir cov-int ${MAKE} ${AM_MAKEFLAGS} check-build
62endif
63
64if COVERITY
65coverity-tarball: coverity-build
f6c21970
PM
66 @if git rev-parse HEAD &> /dev/null; then \
67 rev_full=$$(git rev-parse HEAD); \
68 rev=$$(echo $$rev_full | cut -c1-8); \
69 else \
70 rev_full=$$(date --iso-8601=date); \
71 rev=$$rev_full; \
72 fi; \
b61f4065 73 tar czf libseccomp-coverity_$$rev.tar.gz cov-int; \
f6c21970 74 echo " HEAD revision: $$rev_full"; \
b61f4065
PM
75 ls -l libseccomp-coverity_$$rev.tar.gz
76endif
77
a6cc6331
PM
78help:
79 @echo "libseccomp build system"
80 @echo " make targets:"
81 @echo " (none): build the library"
82 @echo " clean: remove all build artifacts"
83 @echo " check: run the automated regression tests"
84 @echo " check-build: build the library and all tests"
85 @echo " check-syntax: verify the code style"
86 @echo " distcheck: verify the build for distribution"
87 @echo " dist-gzip: build a release tarball"
88 @echo " coverity-tarball: build a tarball for use with Coverity (opt)"
89
b61f4065
PM
90clean-local:
91 ${RM} -rf cov-int libseccomp-coverity_*.tar.gz