summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 329eaeb2c9..dedf6885b6 100644
--- a/Makefile
+++ b/Makefile
@@ -380,8 +380,8 @@ $(obj)/project_filelist.txt:
echo "*** Error: Project must be built before generating file list ***"; \
exit 1; \
fi
- find $(obj) -name "*.d" -exec cat {} \; | \
- sed 's/[:\\]/ /g' | sed 's/ /\n/g' | sort | uniq | \
+ find $(obj) -path "$(obj)/util" -prune -o -name "*.d" -exec cat {} \; | \
+ sed "s|$(top)/||" | sed 's/[:\\]/ /g' | sed 's/ /\n/g' | sort | uniq | \
grep -v '\.o$$' > $(obj)/project_filelist.txt
filelist: $(obj)/project_filelist.txt