Sometimes it is helpful to build the test without executing them, add
a new target, 'check-build' to do just that.

Signed-off-by: Paul Moore <[email protected]>
---
 Makefile.am       |    3 +++
 tests/Makefile.am |    3 +++
 2 files changed, 6 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index 88b6538..b70e4fa 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,5 +28,8 @@ AM_MAKEFLAGS_1 =
 AM_MAKEFLAGS_ = ${AM_MAKEFLAGS_0}
 AM_MAKEFLAGS = ${AM_MAKEFLAGS_@AM_V@}
 
+check-build: all
+       ${MAKE} ${AM_MAKEFLAGS} -C tests check-build
+
 check-syntax:
        @./tools/check-syntax
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7cda78b..d50e29b 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -55,5 +55,8 @@ check_PROGRAMS = \
 
 EXTRA_PROGRAMS = 00-test
 
+check-build:
+       ${MAKE} ${AM_MAKEFLAGS} ${check_PROGRAMS}
+
 clean-local:
        ${RM} -f 00-test *.pyc


------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
libseccomp-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss

Reply via email to