UPSTREAM: Makefile: add 'filelist' target

Add a target to show what files are used in the build. This was already
being generated for other targets, but there was no target to just
generate and view the list.

BUG=none
BRANCH=none
TEST=none

Change-Id: Ia8083371f4337a905b94e1325bef8056d2d37a07
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: a18353d7b7
Original-Change-Id: I6998296bb135d8b7170cacae2be902ef9dac7b54
Original-Signed-off-by: Martin Roth <martinroth@google.com>
Original-Reviewed-on: https://review.coreboot.org/20049
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Original-Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://chromium-review.googlesource.com/528267
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
Martin Roth 2017-06-06 06:44:46 -06:00 committed by chrome-bot
commit f5af05a552

View file

@ -368,6 +368,11 @@ $(obj)/project_filelist.txt: all
sed 's/[:\\]/ /g' | sed 's/ /\n/g' | sort | uniq | \
grep -v '\.o$$' > $(obj)/project_filelist.txt
filelist: clean
$(MAKE) $(obj)/project_filelist.txt
printf "\nFiles used in build:\n"
cat $(obj)/project_filelist.txt
#works with either exuberant ctags or ctags.emacs
ctags-project: clean-ctags $(obj)/project_filelist.txt
cat $(obj)/project_filelist.txt | \