update readme and add gitignore
[client-tools.git] / src / Makefile.am
blobfc91153befea80b338c12ce6209507136353896e
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)
7 LINT_SUBDIRS=engine
8 lint-am: Makefile
9 lint-recursive:
10         @set fnord $$MAKEFLAGS; amf=$$2; \
11         dot_seen=no; \
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 \
16             dot_seen=yes; \
17             local_target="$$target-am"; \
18           else \
19             local_target="$$target"; \
20           fi; \
21           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
22            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
23         done; \
24         if test "$$dot_seen" = "no"; then \
25           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
26         fi; test -z "$$fail"
28 lint: lint-recursive