summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac13
-rw-r--r--solenv/inc/.gitignore3
2 files changed, 14 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index e6f78a731786..de10a0e20511 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11827,7 +11827,18 @@ if test -f config_host.mk; then
config_md5=`$MD5SUM config_host.mk | sed "s/ .*//"`
fi
-AC_CONFIG_FILES([config_host.mk Makefile lo.xcent solenv/inc/minor.mk instsetoo_native/util/openoffice.lst])
+AC_CONFIG_FILES([config_host.mk Makefile lo.xcent instsetoo_native/util/openoffice.lst])
+# Unlike AC_CONFIG_HEADERS, AC_CONFIG_FILES updates the target file even if the contents
+# would be unchanged, avoid that.
+AC_CONFIG_FILES([solenv/inc/minor.mk.tmp:solenv/inc/minor.mk.in],
+ [
+ AC_MSG_NOTICE([creating solenv/inc/minor.mk])
+ if diff solenv/inc/minor.mk.tmp solenv/inc/minor.mk >/dev/null 2>&1 ; then
+ AC_MSG_NOTICE([solenv/inc/minor.mk is unchanged])
+ else
+ cp -f solenv/inc/minor.mk.tmp solenv/inc/minor.mk
+ fi
+ ])
AC_CONFIG_HEADERS([config_host/config_clang.h])
AC_CONFIG_HEADERS([config_host/config_global.h])
AC_CONFIG_HEADERS([config_host/config_graphite.h])
diff --git a/solenv/inc/.gitignore b/solenv/inc/.gitignore
index b8fab615054c..ef9372e6bfd7 100644
--- a/solenv/inc/.gitignore
+++ b/solenv/inc/.gitignore
@@ -1 +1,2 @@
-/minor.mk \ No newline at end of file
+/minor.mk
+/minor.mk.tmp