aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-09-02 16:23:26 +0200
committerBjörn Gustavsson <[email protected]>2011-09-21 15:00:44 +0200
commit6f5a8b438a92ae66b4aa02a97a2aae993c8b7da3 (patch)
tree2f67f0edd5eb889eefddfd52fa71d1522217f67e /lib
parent361aec166c0aa81f2769b9e867e2bdf6ba315b8b (diff)
downloadotp-6f5a8b438a92ae66b4aa02a97a2aae993c8b7da3.tar.gz
otp-6f5a8b438a92ae66b4aa02a97a2aae993c8b7da3.tar.bz2
otp-6f5a8b438a92ae66b4aa02a97a2aae993c8b7da3.zip
odbc/c_src/Makefile.in: Support parallel make
Force early creation of directories. See 8d3a2dfa646ab2ceb41905c673adb15e57bf9cfd for more details.
Diffstat (limited to 'lib')
-rw-r--r--lib/odbc/c_src/Makefile.in7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/odbc/c_src/Makefile.in b/lib/odbc/c_src/Makefile.in
index ed3eeb1d42..dda896bcd2 100644
--- a/lib/odbc/c_src/Makefile.in
+++ b/lib/odbc/c_src/Makefile.in
@@ -89,9 +89,10 @@ TARGET_FLAGS = @TARGET_FLAGS@
# ----------------------------------------------------
# Targets
# ----------------------------------------------------
+_create_dirs := $(shell mkdir -p $(OBJ_DIR) $(BIN_DIR))
ifdef EXE_TARGET
-opt debug: create_dirs $(EXE_TARGET)
+opt debug: $(EXE_TARGET)
else
opt debug:
endif
@@ -119,10 +120,6 @@ endif
$(OBJ_DIR)/odbcserver.o: odbcserver.c
$(CC) $(CFLAGS) $(INCLUDES) $(TARGET_FLAGS) -o $@ -c odbcserver.c
-create_dirs:
- $(INSTALL_DIR) $(OBJ_DIR)
- $(INSTALL_DIR) $(BIN_DIR)
-
# ----------------------------------------------------
# Release Target
# ----------------------------------------------------