Add -p option to mkdir commands in the Makefiles
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 4 Sep 2014 23:40:39 +0000 (16:40 -0700)
committerErich Keane <erich.keane@intel.com>
Thu, 11 Sep 2014 17:53:10 +0000 (10:53 -0700)
This makes mkdir not complain if it cannot create a directory that
already exists. The result of the command is ignored, but we don't need
the diagnostic either.

Change-Id: I25b9da5246e1469bccd5827886eecadd62ad319f
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
csdk/libcoap-4.1.1/makefile

index a237794..003de62 100644 (file)
@@ -90,8 +90,8 @@ OBJECTS:= $(patsubst %.c, %.o, $(SOURCES))
 all: prep_dirs libcoap.a
 
 prep_dirs:
-       -mkdir $(OUT_DIR)
-       -mkdir $(OBJ_DIR)
+       -mkdir -p $(OUT_DIR)
+       -mkdir -p $(OBJ_DIR)
 
 %.o: %.c
        $(CC) -c $(CC_FLAGS.$(BUILD)) $(CFLAGS_PLATFORM) $(INC_DIRS) $(INC_DIR_PLATFORM) $< -o $(OBJ_DIR)/$@