port reconfig target from head
authoraland <aland>
Thu, 6 Jul 2006 16:42:56 +0000 (16:42 +0000)
committeraland <aland>
Thu, 6 Jul 2006 16:42:56 +0000 (16:42 +0000)
src/modules/Makefile
src/modules/rules.mak

index ef90819..e223271 100644 (file)
@@ -22,6 +22,9 @@ clean:
 distclean:
        @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
 
+reconfig:
+       @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
+
 common:
        @[ -d lib/ ] || mkdir lib
        @for mod in $(MODULES); do \
index 0d78448..632577d 100644 (file)
@@ -143,7 +143,9 @@ distclean: clean
        @test -f Makefile.in && rm -f Makefile
 
 reconfig:
-       @[ "x$(AUTOCONF)" != "x" ] && [ -f ./configure.in ] && $(AUTOCONF) -I $(top_builddir)
+       @if [ -f configure.in ]; then \
+               [ "x$(AUTOCONF)" != "x" ] && $(AUTOCONF) -I $(top_builddir); \
+       fi
        @if [ -f config.h.in ]; then \
                [ "x$(AUTOHEADER)" != "x" ] && $(AUTOHEADER); \
        fi