From 462e0fbe51554230898403528cf50c1e6df4a565 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 29 Dec 2019 15:03:07 +0800 Subject: [PATCH] fix builtin_list.c:58:10: fatal error: builtin_proto.h: No such file or directory Make builtin_list.c instead of builtin_list.o depend on builtin_proto.h and builtin_proto.c Change-Id: I1ac6c9b7172d433f5d74c9dd248869adf1f5e387 Signed-off-by: Xiang Xiao --- builtin/Makefile | 2 +- builtin/registry/Makefile | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/builtin/Makefile b/builtin/Makefile index 15b99dbe0cb..7b69ba6e64e 100644 --- a/builtin/Makefile +++ b/builtin/Makefile @@ -47,7 +47,7 @@ BDATLIST = $(strip $(call RWILDCARD, registry, *.bdat)) registry$(DELIM).updated: $(Q) $(MAKE) -C registry .updated TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" -builtin_list$(OBJEXT): builtin_list.h builtin_proto.h +builtin_list.c: builtin_list.h builtin_proto.h builtin_list.h: registry$(DELIM).updated $(call DELFILE, .xx_builtin_list.h) diff --git a/builtin/registry/Makefile b/builtin/registry/Makefile index 255e55206cd..4609158b8ce 100644 --- a/builtin/registry/Makefile +++ b/builtin/registry/Makefile @@ -41,16 +41,11 @@ include $(APPDIR)/Make.defs all: .PHONY: context depend clean distclean -.updated: $(DEPCONFIG) - $(call DELFILE, *.bdat) - $(call DELFILE, *.pdat) - $(Q) touch .updated - # This must run before any other context target install: -context: .updated +context: depend: