2
0

subdirs.am 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright (C) 1994-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. RECURSIVE_TARGETS += all-recursive check-recursive installcheck-recursive
  14. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  15. distclean-recursive maintainer-clean-recursive
  16. am__recursive_targets = \
  17. $(RECURSIVE_TARGETS) \
  18. $(RECURSIVE_CLEAN_TARGETS) \
  19. $(am__extra_recursive_targets)
  20. ## All documented targets which invoke 'make' recursively, or depend
  21. ## on targets that do so. GNUmakefile from gnulib depends on this.
  22. AM_RECURSIVE_TARGETS += $(am__recursive_targets:-recursive=)
  23. .PHONY .MAKE: $(am__recursive_targets)
  24. # This directory's subdirectories are mostly independent; you can cd
  25. # into them and run 'make' without going through this Makefile.
  26. # To change the values of 'make' variables: instead of editing Makefiles,
  27. # (1) if the variable is set in 'config.status', edit 'config.status'
  28. # (which will cause the Makefiles to be regenerated when you run 'make');
  29. # (2) otherwise, pass the desired values on the 'make' command line.
  30. $(am__recursive_targets):
  31. ## Using $failcom allows "-k" to keep its natural meaning when running a
  32. ## recursive rule.
  33. @fail=; \
  34. if $(am__make_keepgoing); then \
  35. failcom='fail=yes'; \
  36. else \
  37. failcom='exit 1'; \
  38. fi; \
  39. dot_seen=no; \
  40. target=`echo $@ | sed s/-recursive//`; \
  41. ## For distclean and maintainer-clean we make sure to use the full
  42. ## list of subdirectories. We do this so that 'configure; make
  43. ## distclean' really is a no-op, even if SUBDIRS is conditional.
  44. case "$@" in \
  45. distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  46. *) list='$(SUBDIRS)' ;; \
  47. esac; \
  48. for subdir in $$list; do \
  49. echo "Making $$target in $$subdir"; \
  50. if test "$$subdir" = "."; then \
  51. dot_seen=yes; \
  52. local_target="$$target-am"; \
  53. else \
  54. local_target="$$target"; \
  55. fi; \
  56. ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  57. || eval $$failcom; \
  58. done; \
  59. if test "$$dot_seen" = "no"; then \
  60. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  61. fi; test -z "$$fail"
  62. mostlyclean: mostlyclean-recursive
  63. clean: clean-recursive
  64. distclean: distclean-recursive
  65. maintainer-clean: maintainer-clean-recursive