Skip to content
Snippets Groups Projects
Commit ab206439 authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

don't force build.h to be built at 'install' time, if it's already there leave it alone

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 512a5a47
Branches
No related tags found
No related merge requests found
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
# #
# Top level Makefile # 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 # This program is free software, distributed under the terms of
# the GNU General Public License # the GNU General Public License
...@@ -401,13 +401,19 @@ defaults.h: FORCE ...@@ -401,13 +401,19 @@ defaults.h: FORCE
fi fi
rm -f $@.tmp rm -f $@.tmp
include/asterisk/build.h: FORCE
include/asterisk/build.h:
./make_build_h > $@.tmp ./make_build_h > $@.tmp
if ! cmp -s $@.tmp $@ ; then \ if ! cmp -s $@.tmp $@ ; then \
mv $@.tmp $@ ; \ mv $@.tmp $@ ; \
fi fi
rm -f $@.tmp 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 include/asterisk/version.h: FORCE
./make_version_h > $@.tmp ./make_version_h > $@.tmp
if ! cmp -s $@.tmp $@ ; then \ if ! cmp -s $@.tmp $@ ; then \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment