apps/builtin/Makefile: Fix an error introduced with commit 904d68cd1f
: If there are no built-in functions, then the CATFILE function hangs.
This commit is contained in:
parent
32f50985a6
commit
7d47671b9d
@ -62,8 +62,8 @@ VPATH =
|
||||
|
||||
# Registry entry lists
|
||||
|
||||
PDATLIST = $(call RWILDCARD, registry, *.pdat)
|
||||
BDATLIST = $(call RWILDCARD, registry, *.bdat)
|
||||
PDATLIST = $(strip $(call RWILDCARD, registry, *.pdat))
|
||||
BDATLIST = $(strip $(call RWILDCARD, registry, *.bdat))
|
||||
|
||||
# Build Targets
|
||||
|
||||
@ -85,13 +85,17 @@ builtin_list$(OBJEXT): builtin_list.h builtin_proto.h
|
||||
builtin_list.h: registry$(DELIM).updated
|
||||
$(call DELFILE, .xx_builtin_list.h)
|
||||
$(Q) touch .xx_builtin_list.h
|
||||
ifneq ($(BDATLIST),)
|
||||
$(call CATFILE, .xx_builtin_list.h, $(BDATLIST))
|
||||
endif
|
||||
$(Q) mv .xx_builtin_list.h builtin_list.h
|
||||
|
||||
builtin_proto.h: registry$(DELIM).updated
|
||||
$(call DELFILE, .xx_builtin_proto.h)
|
||||
$(Q) touch .xx_builtin_proto.h
|
||||
ifneq ($(PDATLIST),)
|
||||
$(call CATFILE, .xx_builtin_proto.h, $(PDATLIST))
|
||||
endif
|
||||
$(Q) mv .xx_builtin_proto.h builtin_proto.h
|
||||
|
||||
.built: $(OBJS)
|
||||
|
Loading…
Reference in New Issue
Block a user