mirror of
https://github.com/samba-team/samba.git
synced 2025-03-30 06:50:24 +03:00
r14950: make sure include/config.h is only updated when the content was changed
metze (This used to be commit 2488ead8c3431be3014012a05de4ee57ff13aa93)
This commit is contained in:
parent
0291c48389
commit
c0fb8bf291
@ -51,7 +51,7 @@ echo "$0: running script/mkversion.sh"
|
||||
./script/mkversion.sh || exit 1
|
||||
|
||||
rm -rf autom4te*.cache
|
||||
rm -f configure include/config.h*
|
||||
rm -f configure include/config_tmp.h*
|
||||
|
||||
echo "$0: running $AUTOHEADER"
|
||||
$AUTOHEADER || exit 1
|
||||
|
@ -7,7 +7,7 @@ dnl AC_PREREQ(2.53)
|
||||
AC_INIT([samba],[],[samba-technical@samba.org])
|
||||
|
||||
AC_CONFIG_SRCDIR([include/includes.h])
|
||||
AC_CONFIG_HEADER(include/config.h)
|
||||
AC_CONFIG_HEADER(include/config_tmp.h)
|
||||
|
||||
# Configuration rules.
|
||||
sinclude(build/m4/env.m4)
|
||||
@ -110,6 +110,12 @@ $SMB_INFO_SUBSYSTEMS
|
||||
$SMB_INFO_LIBRARIES
|
||||
CEOF
|
||||
|
||||
cmp include/config_tmp.h include/config.h >/dev/null 2>&1
|
||||
CMP_RET=$?
|
||||
if [ $CMP_RET != 0 ];then
|
||||
cp include/config_tmp.h include/config.h
|
||||
fi
|
||||
|
||||
AC_OUTPUT_COMMANDS(
|
||||
[$PERL -I${builddir} -I${srcdir} -I${srcdir}/build ${srcdir}/build/smb_build/main.pl || exit $?],[
|
||||
PERL="$PERL";export PERL;export srcdir; export builddir;
|
||||
|
@ -251,7 +251,7 @@ clean:: clean_pch
|
||||
@-rm -f $(PROTO_HEADERS)
|
||||
|
||||
distclean: clean
|
||||
-rm -f include/config.h include/smb_build.h
|
||||
-rm -f include/config.h include/config_tmp.h include/build.h
|
||||
-rm -f Makefile
|
||||
-rm -f config.status
|
||||
-rm -f config.log config.cache
|
||||
@ -262,7 +262,7 @@ removebackup:
|
||||
-rm -f *.bak *~ */*.bak */*~ */*/*.bak */*/*~ */*/*/*.bak */*/*/*~
|
||||
|
||||
realdistclean: distclean removebackup
|
||||
-rm -f include/config.h.in
|
||||
-rm -f include/config_tmp.h.in
|
||||
-rm -f include/version.h
|
||||
-rm -f configure
|
||||
-rm -f $(MANPAGES)
|
||||
|
Loading…
x
Reference in New Issue
Block a user