check2.am 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright (C) 2008-2017 Free Software Foundation, Inc.
  3. ## This program is free software; you can redistribute it and/or modify
  4. ## it under the terms of the GNU General Public License as published by
  5. ## the Free Software Foundation; either version 2, or (at your option)
  6. ## any later version.
  7. ## This program is distributed in the hope that it will be useful,
  8. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. ## GNU General Public License for more details.
  11. ## You should have received a copy of the GNU General Public License
  12. ## along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. if %?FIRST%
  14. ## When BSD make is run in parallel mode, it apparently strips any
  15. ## leading directory component from the automatic variable '$*' (of
  16. ## course, against what POSIX mandates). Try to detect and work
  17. ## around this incompatibility.
  18. am__set_b = \
  19. case '$@' in \
  20. */*) \
  21. case '$*' in \
  22. */*) b='$*';; \
  23. *) b=`echo '$@' | sed 's/\.log$$//'`; \
  24. esac;; \
  25. *) \
  26. b='$*';; \
  27. esac
  28. endif %?FIRST%
  29. ## From a test file to a .log and .trs file.
  30. ?GENERIC?%EXT%.log:
  31. ?!GENERIC?%OBJ%: %SOURCE%
  32. @p='%SOURCE%'; \
  33. ## Another hack to support BSD make in parallel mode.
  34. ?!GENERIC? b='%BASE%'; \
  35. ?GENERIC? $(am__set_b); \
  36. $(am__check_pre) %DRIVER% --test-name "$$f" \
  37. --log-file $$b.log --trs-file $$b.trs \
  38. $(am__common_driver_flags) %DRIVER_FLAGS% -- %COMPILE% \
  39. "$$tst" $(AM_TESTS_FD_REDIRECT)
  40. ## If no programs are built in this package, then this rule is removed
  41. ## at automake time. Otherwise, %am__EXEEXT% expands to a configure time
  42. ## conditional, true if $(EXEEXT) is nonempty, thus this rule does not
  43. ## conflict with the previous one.
  44. if %am__EXEEXT%
  45. ?GENERIC?%EXT%$(EXEEXT).log:
  46. @p='%SOURCE%'; \
  47. ## Another hack to support BSD make in parallel mode.
  48. ?!GENERIC? b='%BASE%'; \
  49. ?GENERIC? $(am__set_b); \
  50. $(am__check_pre) %DRIVER% --test-name "$$f" \
  51. --log-file $$b.log --trs-file $$b.trs \
  52. $(am__common_driver_flags) %DRIVER_FLAGS% -- %COMPILE% \
  53. "$$tst" $(AM_TESTS_FD_REDIRECT)
  54. endif %am__EXEEXT%