summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-09-18 09:25:18 -0600
committerMartin Roth <martinroth@google.com>2017-09-21 17:48:01 +0000
commit9b0204d744380c7d7b7859ad821195931461dae4 (patch)
tree7b221cffd0d630f892266916c7198e2636c578d9 /Makefile
parent3b498a0b533713d8d158611863d090ac68116c4d (diff)
Makefile: Don't rebuild when generating tags or file list
Generating a project file list used to do a rebuild of the project. Instead, just make sure there's a coreboot.rom file present and if it is, generate the list. Change-Id: I9cc12ef3d1990c3422625630451b2a7b8d77829c Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/21585 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 383d5839a6..4ad0177420 100644
--- a/Makefile
+++ b/Makefile
@@ -369,13 +369,16 @@ ifndef NOMKDIR
$(shell mkdir -p $(KCONFIG_SPLITCONFIG) $(objk)/lxdialog $(additional-dirs) $(alldirs))
endif
-$(obj)/project_filelist.txt: all
+$(obj)/project_filelist.txt:
+ if [ -z "$(wildcard $(obj)/coreboot.rom)" ]; then \
+ 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 | \
grep -v '\.o$$' > $(obj)/project_filelist.txt
-filelist: clean
- $(MAKE) $(obj)/project_filelist.txt
+filelist: $(obj)/project_filelist.txt
printf "\nFiles used in build:\n"
cat $(obj)/project_filelist.txt