From a0d72633438961ad57f2ca335be34bea94d37502 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Tue, 28 Apr 2009 14:17:25 +0000 Subject: Merged revisions 190865 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r190865 | kpfleming | 2009-04-28 09:15:47 -0500 (Tue, 28 Apr 2009) | 5 lines Build XML documention from *only* the source files that have docs in them Change the build process so that doc/core-en_US.xml is dependent solely on the source files that have documentation in them, not on all source files. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@190869 f38db490-d61c-443f-a65b-d21fe96a405b --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b6b807459..10100522e 100644 --- a/Makefile +++ b/Makefile @@ -493,7 +493,7 @@ datafiles: _all mkdir -p $(DESTDIR)$(AGI_DIR) $(MAKE) -C sounds install -doc/core-en_US.xml: $(foreach dir,$(MOD_SUBDIRS),$(wildcard $(dir)/*.c) $(wildcard $(dir)/*.cc)) +doc/core-en_US.xml: $(foreach dir,$(MOD_SUBDIRS),$(shell $(GREP) -l "language=\"en_US\"" $(dir)/*.c $(dir)/*.cc 2>/dev/null)) @echo -n "Building Documentation For: " @echo "" > $@ @echo "" >> $@ -- cgit v1.2.3