1 AUTOMAKE_OPTIONS=foreign
2 SUBDIRS=external engine game . test
5 # one-off lint target for top-level makefile. Lint
6 # is selectively enabled for engine only (for now)
10 @set fnord $$MAKEFLAGS; amf=$$2; \
12 target=`echo $@ | sed s/-recursive//`; \
13 list='$(LINT_SUBDIRS)'; for subdir in $$list; do \
14 echo "Making $$target in $$subdir"; \
15 if test "$$subdir" = "."; then \
17 local_target="$$target-am"; \
19 local_target="$$target"; \
21 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
22 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
24 if test "$$dot_seen" = "no"; then \
25 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \