1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000
3 ## Free Software Foundation, Inc.
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 2, or (at your option)
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; if not, write to the Free Software
17 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 # This directory's subdirectories are mostly independent; you can cd
20 # into them and run `make' without going through this Makefile.
21 # To change the values of `make' variables: instead of editing Makefiles,
22 # (1) if the variable is set in `config.status', edit `config.status'
23 # (which will cause the Makefiles to be regenerated when you run `make');
24 # (2) otherwise, pass the desired values on the `make' command line.
26 all-recursive install-data-recursive install-exec-recursive \
27 installdirs-recursive install-recursive uninstall-recursive @INSTALLINFO@ \
28 check-recursive installcheck-recursive info-recursive dvi-recursive:
29 @set fnord $(MAKEFLAGS); amf=$$2; \
31 target=`echo $@ | sed s/-recursive//`; \
32 list='$(SUBDIRS)'; for subdir in $$list; do \
33 echo "Making $$target in $$subdir"; \
34 if test "$$subdir" = "."; then \
36 local_target="$$target-am"; \
38 local_target="$$target"; \
40 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
41 ## This trick allows "-k" to keep its natural meaning when running a
43 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
45 if test "$$dot_seen" = "no"; then \
46 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
49 ## We run all `clean' targets in reverse order. Why? It's an attempt
50 ## to alleviate a problem that can happen when dependencies are
51 ## enabled. In this case, the .P file in one directory can depend on
52 ## some automatically generated header in an earlier directory. Since
53 ## the dependencies are required before any target is examined, make
55 mostlyclean-recursive clean-recursive distclean-recursive \
56 maintainer-clean-recursive:
57 @set fnord $(MAKEFLAGS); amf=$$2; \
59 ## For distclean and maintainer-clean we make sure to use the full
60 ## list of subdirectories. We do this so that `configure; make
61 ## distclean' really is a no-op, even if SUBDIRS is conditional. For
62 ## other clean targets this doesn't matter.
64 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
65 *) list='$(SUBDIRS)' ;; \
67 rev=''; for subdir in $$list; do \
68 if test "$$subdir" = "."; then :; else \
69 rev="$$subdir $$rev"; \
72 ## Always do `.' last.
74 target=`echo $@ | sed s/-recursive//`; \
75 for subdir in $$rev; do \
76 echo "Making $$target in $$subdir"; \
77 if test "$$subdir" = "."; then \
78 local_target="$$target-am"; \
80 local_target="$$target"; \
82 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
83 ## This trick allows "-k" to keep its natural meaning when running a
85 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
86 done && test -z "$$fail"