(all-recursive): Put with other -recursive rules
[platform/upstream/automake.git] / lib / am / subdirs.am
1 # This directory's subdirectories are mostly independent; you can cd
2 # into them and run `make' without going through this Makefile.
3 # To change the values of `make' variables: instead of editing Makefiles,
4 # (1) if the variable is set in `config.status', edit `config.status'
5 #     (which will cause the Makefiles to be regenerated when you run `make');
6 # (2) otherwise, pass the desired values on the `make' command line.
7
8 @SET_MAKE@
9
10 # NOTE: "all" is separate because otherwise the AIX 3.2.5 make will
11 # run all of the "all", "install", "uninstall", etc targets if run
12 # with no arguments.
13 all:: all-recursive
14
15 install install-exec install-data install-info uninstall check info dvi id ID::
16         for subdir in $(SUBDIRS); do            \
17           echo making $@ in $$subdir;           \
18           (cd $$subdir; $(MAKE) $@)             \
19            || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
20         done && test -z "$$fail"
21
22 mostlyclean: mostlyclean-recursive mostlyclean-local
23
24 clean: clean-recursive clean-local
25
26 distclean: distclean-recursive
27         $(MAKE) distclean-local
28                
29 maintainer-clean: maintainer-clean-recursive
30         @echo "This command is intended for maintainers to use;"
31         @echo "it deletes files that may require special tools to rebuild."
32         $(MAKE) realclean-local
33
34 all-recursive mostlyclean-recursive clean-recursive distclean-recursive maintainer-clean-recursive:
35         for subdir in $(SUBDIRS); do \
36           (cd $$subdir; $(MAKE) `echo $@ | sed s/-recursive//`); \
37         done
38
39 mostlyclean-local:
40
41 clean-local: mostlyclean-local
42
43 distclean-local: clean-local
44         rm -f Makefile config.cache config.log config.status
45         rm -f ${CONFIG_HEADER} stamp-h
46
47 maintainer-clean-local: distclean-local
48         rm -f TAGS
49
50
51 # Tell versions [3.59,3.63) of GNU make to not export all variables.
52 # Otherwise a system limit (for SysV at least) may be exceeded.
53 .NOEXPORT:
54