From 8910ca14c4b4fffb04eea6ddf1001156e0a0fa61 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 8 Mar 2001 15:13:04 -0500 Subject: [svn-r3568] Purpose: Bug Fix Description: Added logic so that all the various make options would recursively be done in their subdirectories. Solution: Added a for-loop to iterate through the subdirectories. Platforms tested: Linux --- config/conclude.in | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/config/conclude.in b/config/conclude.in index 33cb243..b6d566c 100644 --- a/config/conclude.in +++ b/config/conclude.in @@ -10,8 +10,18 @@ lib: $(LIB) $(LIB) __no_library__: $(LIB_OBJ) @$(LT_LINK_LIB) -o $@ $(CFLAGS) $(LIB_OBJ) $(LDFLAGS) $(LIBS) + @for d in X $(SUBDIRS); do \ + if test $$d != X; then \ + (set -x; cd $$d && $(MAKE) lib) || exit 1; \ + fi; \ + done progs: $(LIB) $(PROGS) + @for d in X $(SUBDIRS); do \ + if test $$d != X; then \ + (set -x; cd $$d && $(MAKE) progs) || exit 1; \ + fi; \ + done ## Build a tags file in this directory. ## @@ -52,6 +62,11 @@ check test _test: tests fi; \ done; \ test $$test = dummy || false + @for d in X $(SUBDIRS); do \ + if test $$d != X; then \ + (set -x; cd $$d && $(MAKE) tests) || exit 1; \ + fi; \ + done ## Make installation directories directories if they don't exist. ## @@ -90,6 +105,11 @@ install: $(PUB_LIB) $(PUB_HDR) $(PUB_PROGS) $(libdir) $(includedir) $(bindir) ($(LT_INSTALL_PROG) $$f $(bindir)/. || exit 1); \ fi; \ done + @for d in X $(SUBDIRS); do \ + if test $$d != X; then \ + (set -x; cd $$d && $(MAKE) $@) || exit 1; \ + fi; \ + done ## Install the documents. ## -- cgit v0.12