Allow a "make reconfigure" to continue, even if the Makefile changes.
authorWayne Davison <wayned@samba.org>
Fri, 10 Apr 2009 23:24:12 +0000 (16:24 -0700)
committerWayne Davison <wayned@samba.org>
Fri, 10 Apr 2009 23:24:12 +0000 (16:24 -0700)
Makefile.in

index 9c9a58e..0176954 100644 (file)
@@ -162,8 +162,12 @@ Makefile: Makefile.in config.status configure.sh config.h.in
            echo "Makefile is unchanged."; \
            rm Makefile.old; \
        else \
            echo "Makefile is unchanged."; \
            rm Makefile.old; \
        else \
-           echo "Makefile updated -- rerun your make command."; \
-           exit 1; \
+           if test "$(MAKECMDGOALS)" = reconfigure; then \
+               echo 'Continuing with "make reconfigure".'; \
+           else \
+               echo "Makefile updated -- rerun your make command."; \
+               exit 1; \
+           fi \
        fi
 
 proto: proto.h-tstamp
        fi
 
 proto: proto.h-tstamp