maint: run "make update-copyright"
[platform/upstream/automake.git] / lib / am / check2.am
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 2008-2012 Free Software Foundation, Inc.
3
4 ## This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2, or (at your option)
7 ## any later version.
8
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ## GNU General Public License for more details.
13
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
17 ## From a test file to a .log and .trs file.
18 ?GENERIC?%EXT%.log:
19 ?!GENERIC?%OBJ%: %SOURCE%
20         @p='%SOURCE%'; $(am__check_pre) %DRIVER% --test-name "$$f" \
21         --log-file '%BASE%.log' --trs-file '%BASE%.trs' \
22         $(am__common_driver_flags) %DRIVER_FLAGS% -- %COMPILE% \
23         "$$tst" $(AM_TESTS_FD_REDIRECT)
24
25 ## If no programs are built in this package, then this rule is removed
26 ## at automake time.  Otherwise, %am__EXEEXT% expands to a configure time
27 ## conditional, true if $(EXEEXT) is nonempty, thus this rule does not
28 ## conflict with the previous one.
29 if %am__EXEEXT%
30 ?GENERIC?%EXT%$(EXEEXT).log:
31         @p='%SOURCE%'; $(am__check_pre) %DRIVER% --test-name "$$f" \
32         --log-file '%BASE%.log' --trs-file '%BASE%.trs' \
33         $(am__common_driver_flags) %DRIVER_FLAGS% -- %COMPILE% \
34         "$$tst" $(AM_TESTS_FD_REDIRECT)
35 endif %am__EXEEXT%