Corrected fix from Bruce Hill's Github PR#19

This commit is contained in:
Andrew Johnson
2018-03-03 17:17:34 -06:00
parent 98930eebc4
commit 8eb4eec7d2

View File

@@ -170,8 +170,9 @@ ifdef RES
@$(RM) *$(RES)
endif
$(DIRECTORY_TARGETS) :
$(MKDIR) -p $@
# Sort mkdir targets to remove duplicates & make parents first
$(DIRECTORY_TARGETS):
$(MKDIR) $(sort $@)
# Install LIB_INSTALLS libraries before linking executables
$(TESTPRODNAME) $(PRODNAME): | $(INSTALL_LIB_INSTALLS)