1## automake - create Makefile.in from Makefile.am 2## Copyright (C) 2008-2021 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 <https://www.gnu.org/licenses/>. 16 17if %?FIRST% 18## When BSD make is run in parallel mode, it apparently strips any 19## leading directory component from the automatic variable '$*' (of 20## course, against what POSIX mandates). Try to detect and work 21## around this incompatibility. 22am__set_b = \ 23 case '$@' in \ 24 */*) \ 25 case '$*' in \ 26 */*) b='$*';; \ 27 *) b=`echo '$@' | sed 's/\.log$$//'`; \ 28 esac;; \ 29 *) \ 30 b='$*';; \ 31 esac 32endif %?FIRST% 33 34## From a test file to a .log and .trs file. 35?GENERIC?%EXT%.log: 36?!GENERIC?%OBJ%: %SOURCE% 37 @p='%SOURCE%'; \ 38## Another hack to support BSD make in parallel mode. 39?!GENERIC? b='%BASE%'; \ 40?GENERIC? $(am__set_b); \ 41 $(am__check_pre) %DRIVER% --test-name "$$f" \ 42 --log-file $$b.log --trs-file $$b.trs \ 43 $(am__common_driver_flags) %DRIVER_FLAGS% -- %COMPILE% \ 44 "$$tst" $(AM_TESTS_FD_REDIRECT) 45 46## If no programs are built in this package, then this rule is removed 47## at automake time. Otherwise, %am__EXEEXT% expands to a configure time 48## conditional, true if $(EXEEXT) is nonempty, thus this rule does not 49## conflict with the previous one. 50if %am__EXEEXT% 51?GENERIC?%EXT%$(EXEEXT).log: 52 @p='%SOURCE%'; \ 53 ## Another hack to support BSD make in parallel mode. 54?!GENERIC? b='%BASE%'; \ 55?GENERIC? $(am__set_b); \ 56 $(am__check_pre) %DRIVER% --test-name "$$f" \ 57 --log-file $$b.log --trs-file $$b.trs \ 58 $(am__common_driver_flags) %DRIVER_FLAGS% -- %COMPILE% \ 59 "$$tst" $(AM_TESTS_FD_REDIRECT) 60endif %am__EXEEXT% 61