don't force build.h to be built at 'install' time, if it's already there leave it alone
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5861 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
a57957e38d
commit
4b1baec1ef
12
Makefile
12
Makefile
|
@ -3,9 +3,9 @@
|
|||
#
|
||||
# Top level Makefile
|
||||
#
|
||||
# Copyright (C) 1999, Mark Spencer
|
||||
# Copyright (C) 1999-2005, Mark Spencer
|
||||
#
|
||||
# Mark Spencer <markster@linux-support.net>
|
||||
# Mark Spencer <markster@digium.com>
|
||||
#
|
||||
# This program is free software, distributed under the terms of
|
||||
# the GNU General Public License
|
||||
|
@ -401,13 +401,19 @@ defaults.h: FORCE
|
|||
fi
|
||||
rm -f $@.tmp
|
||||
|
||||
include/asterisk/build.h: FORCE
|
||||
|
||||
include/asterisk/build.h:
|
||||
./make_build_h > $@.tmp
|
||||
if ! cmp -s $@.tmp $@ ; then \
|
||||
mv $@.tmp $@ ; \
|
||||
fi
|
||||
rm -f $@.tmp
|
||||
|
||||
# only force 'build.h' to be made for a non-'install' run
|
||||
ifeq ($(findstring install,$(MAKECMDGOALS)),)
|
||||
include/asterisk/build.h: FORCE
|
||||
endif
|
||||
|
||||
include/asterisk/version.h: FORCE
|
||||
./make_version_h > $@.tmp
|
||||
if ! cmp -s $@.tmp $@ ; then \
|
||||
|
|
Reference in New Issue