]>
Commit | Line | Data |
---|---|---|
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 | # | |
18 | ||
19 | ACLOCAL_AMFLAGS = -I m4 | |
20 | SUBDIRS = include src tools tests doc | |
21 | ||
22 | pkgconfdir = ${libdir}/pkgconfig | |
23 | pkgconf_DATA = libseccomp.pc | |
24 | ||
25 | EXTRA_DIST = CHANGELOG CREDITS LICENSE README SUBMITTING_PATCHES | |
26 | ||
27 | # support silent builds | |
28 | AM_MAKEFLAGS_0 = --quiet --no-print-directory | |
29 | AM_MAKEFLAGS_1 = | |
30 | AM_MAKEFLAGS_ = ${AM_MAKEFLAGS_0} | |
31 | AM_MAKEFLAGS = ${AM_MAKEFLAGS_@AM_V@} | |
32 | ||
33 | check-build: all | |
34 | ${MAKE} ${AM_MAKEFLAGS} -C src check-build | |
35 | ${MAKE} ${AM_MAKEFLAGS} -C tests check-build | |
36 | ||
37 | check-syntax: | |
38 | @./tools/check-syntax | |
39 | ||
40 | if COVERITY | |
41 | coverity-build: clean | |
42 | cov-build --dir cov-int ${MAKE} ${AM_MAKEFLAGS} check-build | |
43 | endif | |
44 | ||
45 | if COVERITY | |
46 | coverity-tarball: coverity-build | |
47 | @if git rev-parse HEAD &> /dev/null; then \ | |
48 | rev_full=$$(git rev-parse HEAD); \ | |
49 | rev=$$(echo $$rev_full | cut -c1-8); \ | |
50 | else \ | |
51 | rev_full=$$(date --iso-8601=date); \ | |
52 | rev=$$rev_full; \ | |
53 | fi; \ | |
54 | tar czf libseccomp-coverity_$$rev.tar.gz cov-int; \ | |
55 | echo " HEAD revision: $$rev_full"; \ | |
56 | ls -l libseccomp-coverity_$$rev.tar.gz | |
57 | endif | |
58 | ||
59 | clean-local: | |
60 | ${RM} -rf cov-int libseccomp-coverity_*.tar.gz |