From 61d3ba04b497011b933564cc4566239a91e4bf67 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 10 Apr 2010 10:49:18 +0200 Subject: [PATCH] s4:configure: generate Makefile from Makefile.in This makes it possible for the waf build to also generate a 'Makefile' instead of 'makefile'. On some platforms 'Makefile' is used before 'makefile' metze --- .gitignore | 2 +- source4/{Makefile => Makefile.in} | 4 ++++ source4/autogen.sh | 4 +--- source4/configure.ac | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) rename source4/{Makefile => Makefile.in} (98%) diff --git a/.gitignore b/.gitignore index 8931c6a4c80..b10999393dc 100644 --- a/.gitignore +++ b/.gitignore @@ -14,7 +14,7 @@ config.h.in config.log config.status configure -makefile +Makefile *.d *_err.c *_err.h diff --git a/source4/Makefile b/source4/Makefile.in similarity index 98% rename from source4/Makefile rename to source4/Makefile.in index dd9376b4767..3d9b1f2adda 100644 --- a/source4/Makefile +++ b/source4/Makefile.in @@ -308,3 +308,7 @@ include $(srcdir)/selftest/config.mk showflags:: @echo ' pwd = '`/bin/pwd` + +Makefile: Makefile.in + @echo "Makefile.in is newer than Makefile, please rerun ./config.status" + @false diff --git a/source4/autogen.sh b/source4/autogen.sh index 86fb1ac7abf..22e35e03167 100755 --- a/source4/autogen.sh +++ b/source4/autogen.sh @@ -69,6 +69,7 @@ echo "$0: running script/mkversion.sh" rm -rf autom4te*.cache rm -f configure include/config_tmp.h* +rm -f makefile Makefile IPATHS="-I. -I../lib/replace" @@ -80,8 +81,5 @@ $AUTOCONF $IPATHS || exit 1 rm -rf autom4te*.cache -# remove a 'makefile' that may have been left by the waf build -rm -f makefile - echo "Now run ./configure (or ./configure.developer) and then make." exit 0 diff --git a/source4/configure.ac b/source4/configure.ac index c6bdc54fe33..e5bcc0254b5 100644 --- a/source4/configure.ac +++ b/source4/configure.ac @@ -200,7 +200,7 @@ $SMB_INFO_LIBRARIES CEOF SMB_BUILD_RUN(data.mk) -AC_OUTPUT +AC_OUTPUT(Makefile) cmp include/config_tmp.h include/config.h >/dev/null 2>&1 CMP_RET=$?