Recursively search for '.c' files when making documentation with 'make full'
[asterisk/asterisk.git] / Makefile
index 068ad6d..ae043f2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -495,7 +495,7 @@ else
        @echo "<docs xmlns:xi=\"http://www.w3.org/2001/XInclude\">" >> $@
        @for x in $(MOD_SUBDIRS); do \
                printf "$$x " ; \
-               for i in $$x/*.c; do \
+               for i in `find $$x -name '*.c'`; do \
                        $(PYTHON) build_tools/get_documentation.py < $$i >> $@ ; \
                done ; \
        done