From ffa627a25258ef8bebe9cf16242e2fa616376a80 Mon Sep 17 00:00:00 2001
From: Martin Stjernholm <mast@lysator.liu.se>
Date: Sun, 27 Jan 2002 18:51:27 +0100
Subject: [PATCH] Some updates from modules/Makefile.in.

Rev: src/post_modules/Makefile.in:1.6
---
 src/post_modules/Makefile.in | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/src/post_modules/Makefile.in b/src/post_modules/Makefile.in
index a2cb35818a..f285a83e99 100644
--- a/src/post_modules/Makefile.in
+++ b/src/post_modules/Makefile.in
@@ -1,4 +1,4 @@
-# $Id: Makefile.in,v 1.5 2001/09/01 15:20:08 mast Exp $
+# $Id: Makefile.in,v 1.6 2002/01/27 17:51:27 mast Exp $
 
 @make_variables@
 
@@ -16,10 +16,10 @@ force:
 $(MODULES) no : force
 	@if [ "$@" = "no" ]; then :; else \
 	  echo Making $@; \
-	  ( cd $@; \
-	    rm remake >/dev/null 2>&1 || : ; \
-	    $(MAKE) $(MAKE_FLAGS) MODNAME=$@ || \
-	      ( test -f remake && $(MAKE) $(MAKE_FLAGS) MODNAME=$@ ) \
+	  ( cd $@ && \
+	    (  rm remake >/dev/null 2>&1 || : ) && \
+	    ( $(MAKE) $(MAKE_FLAGS) MODNAME=$@ || \
+	      ( test -f remake && $(MAKE) $(MAKE_FLAGS) MODNAME=$@ ) ) \
 	  ) || exit $$?; \
 	fi
 
@@ -54,8 +54,14 @@ Makefile: $(SRCDIR)/Makefile.in $(SRCDIR)/dependencies ./config.status
 	@echo "Run make again" >&2
 	@exit 1
 
+$(SRCDIR)/configure: $(SRCDIR)/configure.in $(SRCDIR)/../aclocal.m4
+	cd $(SRCDIR) && autoconf --localdir=$(SRCDIR)/..
+
+config.status: $(SRCDIR)/configure
+	CFLAGS="$(REAL_CFLAGS)" LDFLAGS="$(REAL_LDFLAGS)" CPPFLAGS="$(REAL_CPPFLAGS)" BUILDDIR="$(TMP_BUILDDIR)" BINDIR="$(TMP_BINDIR)" ./config.status --recheck
+
 depend:
-	@for a in $(MODULES) ; do \
+	@for a in $(MODULES) no ; do \
 	  if test "$$a" = "no"; then :; else \
 	    ( cd $$a && { \
 	      rm -f remake; \
@@ -110,14 +116,14 @@ fdtestsuites:
 testsuites:
 	@for a in $(MODULES) no ; do \
 	  if [ "$$a" = "no" ]; then :; else \
-	    (cd $$a; make module_testsuite) ; \
+	    (cd $$a && $(MAKE) module_testsuite) ; \
 	  fi; \
 	done
 
 extra_tests:
 	@for a in $(MODULES) no ; do \
 	  if [ "$$a" = "no" ]; then :; else \
-	    ( cd $$a ; \
+	    ( cd $$a && \
 	      ${MAKE} $(MAKE_FLAGS) MODNAME=$$a extra_tests \
 	    ) || exit $$? ; \
 	  fi; \
-- 
GitLab