Browse Source

[build] Avoid always rebuilding bin/embedded.o

bin/embedded.o has a build dependency on bin/.embedded.list, which
gets generated automatically by the Makefile.  However, if the
EMBEDDED_IMAGE list is empty, bin/.embedded.list will never be
created, and so bin/embedded.o will be rebuilt every time due to a
missing dependency.

Fix by forcing bin/.embedded.list to be created even if the list is
empty.
tags/v0.9.8
Michael Brown 16 years ago
parent
commit
a436dc4014
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/Makefile.housekeeping

+ 2
- 2
src/Makefile.housekeeping View File

474
 #
474
 #
475
 EMBEDDED_LIST	:= $(BIN)/.embedded.list
475
 EMBEDDED_LIST	:= $(BIN)/.embedded.list
476
 ifeq ($(wildcard $(EMBEDDED_LIST)),)
476
 ifeq ($(wildcard $(EMBEDDED_LIST)),)
477
-EMBEDDED_LIST_IMAGE :=
477
+EMBEDDED_LIST_IMAGE := <invalid>
478
 else
478
 else
479
 EMBEDDED_LIST_IMAGE := $(shell cat $(EMBEDDED_LIST))
479
 EMBEDDED_LIST_IMAGE := $(shell cat $(EMBEDDED_LIST))
480
 endif
480
 endif
609
 #
609
 #
610
 BLIB_LIST	:= $(BIN)/.blib.list
610
 BLIB_LIST	:= $(BIN)/.blib.list
611
 ifeq ($(wildcard $(BLIB_LIST)),)
611
 ifeq ($(wildcard $(BLIB_LIST)),)
612
-BLIB_LIST_OBJS	:=
612
+BLIB_LIST_OBJS	:= <invalid>
613
 else
613
 else
614
 BLIB_LIST_OBJS	:= $(shell cat $(BLIB_LIST))
614
 BLIB_LIST_OBJS	:= $(shell cat $(BLIB_LIST))
615
 endif
615
 endif

Loading…
Cancel
Save