2018-02-23 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / libvtv / testsuite / other-tests / Makefile.am
blobc665907c162be4f993f3225d2f53883a19548582
1 ## Makefile for the testsuite subdirectory of the VTV library.
2 ##
3 ## Copyright (C) 2013-2018 Free Software Foundation, Inc.
4 ##
5 ## Process this file with automake to produce Makefile.in.
6 ##
7 ## This file is part of the Vtable Verification (VTV) Library.  This
8 ## library is free software; you can redistribute it and/or modify it
9 ## under the terms of the GNU General Public License as published by
10 ## the Free Software Foundation; either version 3, or (at your option)
11 ## any later version.
13 ## This library is distributed in the hope that it will be useful, but
14 ## WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 ## General Public License for more details.
18 ## You should have received a copy of the GNU General Public License
19 ## along with this library; see the file COPYING3.  If not see
20 ## <http://www.gnu.org/licenses/>.
22 AUTOMAKE_OPTIONS = nostdinc
24 # Runs the testsuite via a script.
26 # Create subdirectories.
27 stamp-subdir:
28         if test ! -d lib64; then \
29           mkdir -p lib64; \
30         fi; \
31         if test ! -d lib32; then \
32           mkdir -p lib32; \
33         fi; \
34         echo `date` > stamp-subdir;
37 testing_script=${libvtv_srcdir}/scripts/run-testsuite.sh
38 check-script: ${testing_script} stamp-subdir
39         -@(chmod +x ${testing_script}; \
40         ${testing_script} ${libvtv_srcdir} ${libvtv_builddir})
42 check-am:
43         $(MAKE) $(AM_MAKEFLAGS) check-script
45 .PHONY: check-script
47 # By adding these files here, automake will remove them for 'make clean'
48 CLEANFILES = *.out environment-fail-*  stamp-* replace-fail-*
50 # To remove directories.
51 clean-local:
52         rm -rf lib*