Let's have build.h created a bit earlier so that func_version can use it and not stop the build on a fresh machine that has never had Asterisk installed on it before...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2006-10-22 04:44:43 +00:00
parent a0ae6ebd8e
commit e85da9be41
2 changed files with 8 additions and 6 deletions

View File

@@ -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