Sfoglia il codice sorgente

Add -p parameter to mkdir

So that it's created even when there's a deeper structure
Fred Sundvik 8 anni fa
parent
commit
03b1d142f2
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      tmk_core/rules.mk

+ 2 - 2
tmk_core/rules.mk

@@ -364,10 +364,10 @@ show_path:
 	@echo OBJ=$(OBJ)
 
 # Create build directory
-$(shell mkdir $(BUILD_DIR) 2>/dev/null)
+$(shell mkdir -p $(BUILD_DIR) 2>/dev/null)
 
 # Create object files directory
-$(eval $(foreach OUTPUT,$(OUTPUTS),$(shell mkdir $(OUTPUT) 2>/dev/null)))
+$(eval $(foreach OUTPUT,$(OUTPUTS),$(shell mkdir -p $(OUTPUT) 2>/dev/null)))
 
 # Include the dependency files.
 -include $(patsubst %.o,%.d,$(OBJ))