Let's have build.h created a bit earlier so that func_version can use it and not...
authorJoshua Colp <jcolp@digium.com>
Sun, 22 Oct 2006 04:44:43 +0000 (04:44 +0000)
committerJoshua Colp <jcolp@digium.com>
Sun, 22 Oct 2006 04:44:43 +0000 (04:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45847 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile
main/Makefile

index d85a386..c16c03c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -332,6 +332,13 @@ include/asterisk/buildopts.h: menuselect.makeopts
        fi
        @rm -f $@.tmp
 
+include/asterisk/build.h:
+       @build_tools/make_build_h > $@.tmp
+       @if cmp -s $@.tmp $@ ; then : ; else \
+               mv $@.tmp $@ ; \
+       fi
+       @rm -f $@.tmp
+
 $(SUBDIRS_CLEAN_DEPEND):
        @$(MAKE) --no-print-directory -C $(@:-clean-depend=) clean-depend
 
@@ -624,7 +631,7 @@ $(MOD_SUBDIRS_DEPEND):
 $(OTHER_SUBDIRS_DEPEND):
        @ASTCFLAGS="$(OTHER_SUBDIR_CFLAGS) $(ASTCFLAGS)" $(MAKE) --no-print-directory -C $(@:-depend=) depend
 
-depend: include/asterisk/version.h include/asterisk/buildopts.h defaults.h $(SUBDIRS_DEPEND)
+depend: include/asterisk/version.h include/asterisk/buildopts.h include/asterisk/build.h defaults.h $(SUBDIRS_DEPEND)
 
 sounds:
        $(MAKE) -C sounds all
index c2e8ef6..4a47104 100644 (file)
@@ -126,11 +126,6 @@ else
 endif
 
 asterisk: $(OBJS) editline/libedit.a db1-ast/libdb1.a $(AST_EMBED_LDSCRIPTS)
-       @$(ASTTOPDIR)/build_tools/make_build_h > $(ASTTOPDIR)/include/asterisk/build.h.tmp
-       @if cmp -s $(ASTTOPDIR)/include/asterisk/build.h.tmp $(ASTTOPDIR)/include/asterisk/build.h ; then echo ; else \
-               mv $(ASTTOPDIR)/include/asterisk/build.h.tmp $(ASTTOPDIR)/include/asterisk/build.h ; \
-       fi
-       @rm -f $(ASTTOPDIR)/include/asterisk/build.h.tmp
        @$(CC) -c -o buildinfo.o $(ASTCFLAGS) buildinfo.c
        $(ECHO_PREFIX) echo "   [LD] $^ -> $@"
        $(CMD_PREFIX) $(CXX) $(STATIC_BUILD) -o $@ $(ASTLINK) $(AST_EMBED_LDFLAGS) $(ASTLDFLAGS) $(H323LDFLAGS) $^ buildinfo.o $(AST_LIBS) $(AST_EMBED_LIBS) $(H323LDLIBS)