Rewrote 'clean' rules.
[automake.git] / subdirs.am
blob9a6c0aac95af9647017ced8557f7c689581c7bd5
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.
8 @SET_MAKE@
10 RECURSIVE = all-recursive install-data-recursive install-exec-recursive \
11 uninstall-data-recursive uninstall-exec-recursive install-recursive \
12 uninstall-recursive check-recursive info-recursive dvi-recursive \
13 mostlyclean-recursive clean-recursive distclean-recursive \
14 maintainer-clean-recursive
16 $(RECURSIVE):
17         for subdir in $(SUBDIRS); do            \
18           target=`echo $@ | sed s/-recursive//`; \
19           echo making $$target in $$subdir;     \
20           (cd $$subdir; $(MAKE) $$target)       \
21            || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
22         done && test -z "$$fail"