diff options
author | Sylvain Gault <sylvain.gault@gmail.com> | 2015-09-16 18:43:55 -0400 |
---|---|---|
committer | Gene Cumm <gene.cumm@gmail.com> | 2015-09-16 18:44:00 -0400 |
commit | b5a2782aad93a5cbd85ebdac61c132050b309331 (patch) | |
tree | fe3a2cbdf5e7027bc8bf350be6fd97b4dfa5826b | |
parent | 02f3609a95e3f8c123891faa89fc39eab8d85ede (diff) | |
download | syslinux-b5a2782aad93a5cbd85ebdac61c132050b309331.tar.gz syslinux-b5a2782aad93a5cbd85ebdac61c132050b309331.tar.xz syslinux-b5a2782aad93a5cbd85ebdac61c132050b309331.zip |
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>
-rw-r--r-- | efi/Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/efi/Makefile b/efi/Makefile index d5443bd5..bbf23f24 100644 --- a/efi/Makefile +++ b/efi/Makefile @@ -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 |