From 8c8c48138162921f669127965a4e837ba2b0f535 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 31 Dec 2019 11:02:09 -0600 Subject: [PATCH] fix builtin_list.c:58:10: fatal error: builtin_proto.h: No such file or directory (#2) Make builtin_list.c instead of builtin_list.o depend on builtin_proto.h and builtin_proto.c --- builtin/Makefile | 2 +- builtin/registry/Makefile | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/builtin/Makefile b/builtin/Makefile index 15b99dbe0..7b69ba6e6 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 255e55206..4609158b8 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: