Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
efi: Don't unnecessarily rebuild syslinux.so
OBJ directory creation changed from a .PHONY target to a real target
used through an order-only dependency.

A target depending on another target marked .PHONY is always rebuilt,
thus forcing all the .o files to be rebuilt everytime.

Signed-off-by: Sylvain Gault <sylvain.gault@gmail.com>
Reviewed-by: Paulo Alcantara <pcacjr@zytor.com>
  • Loading branch information
Sylvain Gault authored and geneC committed Sep 16, 2015
1 parent 02f3609 commit b5a2782
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions efi/Makefile
Expand Up @@ -60,11 +60,10 @@ DATE := $(shell sh $(SRC)/../gen-id.sh $(VERSION) $(HEXDATE))
endif
CFLAGS += -DDATE_STR='"$(DATE)"'

.PHONY: subdirs
subdirs:
mkdir -p $(ARCH)
$(OBJ)/$(ARCH):
mkdir -p $@

$(OBJS): subdirs
$(OBJS): | $(OBJ)/$(ARCH)

# The targets to build in this directory
BTARGET = syslinux.efi
Expand Down

0 comments on commit b5a2782

Please sign in to comment.