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. Change-Id: I6998296bb135d8b7170cacae2be902ef9dac7b54 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20049 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
8849f3be4a
commit
a18353d7b7
5
Makefile
5
Makefile
|
@ -368,6 +368,11 @@ $(obj)/project_filelist.txt: all
|
||||||
sed 's/[:\\]/ /g' | sed 's/ /\n/g' | sort | uniq | \
|
sed 's/[:\\]/ /g' | sed 's/ /\n/g' | sort | uniq | \
|
||||||
grep -v '\.o$$' > $(obj)/project_filelist.txt
|
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
|
#works with either exuberant ctags or ctags.emacs
|
||||||
ctags-project: clean-ctags $(obj)/project_filelist.txt
|
ctags-project: clean-ctags $(obj)/project_filelist.txt
|
||||||
cat $(obj)/project_filelist.txt | \
|
cat $(obj)/project_filelist.txt | \
|
||||||
|
|
Loading…
Reference in New Issue