aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-10-19 16:49:05 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-10-26 16:15:15 +0100
commitd280f9d57e4ac5739a0841eef7ca3c1cc93fd8e3 (patch)
tree5d1001939f784cd040046e1c29afa29b189aa47b /Makefile
parent9b6f8c8cfb405f5c4f1aa7a42cf9f7f077a51c45 (diff)
downloadsyslinux-d280f9d57e4ac5739a0841eef7ca3c1cc93fd8e3.tar.gz
syslinux-d280f9d57e4ac5739a0841eef7ca3c1cc93fd8e3.tar.xz
syslinux-d280f9d57e4ac5739a0841eef7ca3c1cc93fd8e3.zip
Makefile: Only provide one make rule for each directory
Otherwise we end up with warnings like this, Makefile:258: warning: overriding recipe for target `efi' Makefile:253: warning: ignoring old recipe for target `efi' Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 1 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 15d0a981..a4daae54 100644
--- a/Makefile
+++ b/Makefile
@@ -247,14 +247,7 @@ all-local: $(BTARGET) $(ITARGET)
-ls -l $(BOBJECTS) $(IOBJECTS)
subdirs: $(BSUBDIRS) $(ISUBDIRS)
-# Note the double-colon which avoids the make warning about redefining
-# a rule for libinstaller.
-$(BSUBDIRS):
- @mkdir -p $@
- $(MAKE) -C $@ SRC="$(SRC)/$@" OBJ="$(OBJ)/$@" \
- -f $(SRC)/$@/Makefile $(MAKECMDGOALS)
-
-$(ISUBDIRS):
+$(sort $(ISUBDIRS) $(BSUBDIRS)):
@mkdir -p $@
$(MAKE) -C $@ SRC="$(SRC)/$@" OBJ="$(OBJ)/$@" \
-f $(SRC)/$@/Makefile $(MAKECMDGOALS)