[asterisk-commits] kpfleming: trunk r190865 - /trunk/Makefile

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 28 09:15:50 CDT 2009


Author: kpfleming
Date: Tue Apr 28 09:15:47 2009
New Revision: 190865

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=190865
Log:
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.


Modified:
    trunk/Makefile

Modified: trunk/Makefile
URL: http://svn.digium.com/svn-view/asterisk/trunk/Makefile?view=diff&rev=190865&r1=190864&r2=190865
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Tue Apr 28 09:15:47 2009
@@ -493,7 +493,7 @@
 	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 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > $@
 	@echo "<!DOCTYPE docs SYSTEM \"appdocsxml.dtd\">" >> $@




More information about the asterisk-commits mailing list