This keeps complexity localized in one place and allows using the OBJDIRS
variable in any place without having to drop duplicates from it.
---
Makefile | 2 +-
common.mak | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 52b6647..89e7c61 100644
--- a/Makefile
+++ b/Makefile
@@ -189,7 +189,7 @@ check: all alltools checkheaders examples testprogs fate
include $(SRC_PATH)/doc/Makefile
include $(SRC_PATH)/tests/Makefile
-$(sort $(OBJDIRS)):
+$(OBJDIRS):
$(Q)mkdir -p $@
# Dummy rule to stop make trying to rebuild removed or renamed headers
diff --git a/common.mak b/common.mak
index 98c274e..24473f1 100644
--- a/common.mak
+++ b/common.mak
@@ -43,7 +43,7 @@ $(HOSTOBJS): | $(sort $(dir $(HOSTOBJS)))
$(TESTOBJS): | $(sort $(dir $(TESTOBJS)))
$(TOOLOBJS): | tools
-OBJDIRS := $(OBJDIRS) $(dir $(OBJS) $(HOSTOBJS) $(TESTOBJS))
+OBJDIRS := $(OBJDIRS) $(sort $(dir $(OBJS) $(HOSTOBJS) $(TESTOBJS)))
CLEANSUFFIXES = *.d *.o *~ *.ho *.map *.ver
DISTCLEANSUFFIXES = *.pc
--
1.7.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel