diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2009-04-28 14:15:47 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2009-04-28 14:15:47 +0000 |
commit | f321d081134ae15fef42038c01a7f81081e59b31 (patch) | |
tree | a769873bdcbc07c9ae3bc44bfbe38f6eb4ed4325 /Makefile | |
parent | 97e5d179ca37b8391bbf41da3999ea4027b0b326 (diff) |
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: https://origsvn.digium.com/svn/asterisk/trunk@190865 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > $@ @echo "<!DOCTYPE docs SYSTEM \"appdocsxml.dtd\">" >> $@ |