don't force build.h to be built at 'install' time, if it's already there leave it...
authorKevin P. Fleming <kpfleming@digium.com>
Mon, 6 Jun 2005 18:29:57 +0000 (18:29 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Mon, 6 Jun 2005 18:29:57 +0000 (18:29 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5861 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index f15e5eb..de24296 100755 (executable)
--- a/Makefile
+++ b/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 \