aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/c_src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/asn1/c_src/Makefile')
-rw-r--r--lib/asn1/c_src/Makefile12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/asn1/c_src/Makefile b/lib/asn1/c_src/Makefile
index 60543df355..f7213b9651 100644
--- a/lib/asn1/c_src/Makefile
+++ b/lib/asn1/c_src/Makefile
@@ -80,7 +80,9 @@ endif
# Targets
# ----------------------------------------------------
-opt: $(OBJDIR) $(LIBDIR) $(NIF_SHARED_OBJ_FILE)
+_create_dirs := $(shell mkdir -p $(OBJDIR) $(LIBDIR))
+
+opt: $(NIF_SHARED_OBJ_FILE)
debug: opt
@@ -102,14 +104,6 @@ $(OBJDIR)/%.o: %.c
$(NIF_SHARED_OBJ_FILE): $(NIF_OBJ_FILES)
$(LD) $(LDFLAGS) -o $(NIF_SHARED_OBJ_FILE) $(NIF_OBJ_FILES) $(CLIB_FLAGS) $(LIBS)
-$(LIBDIR):
- -mkdir -p $(LIBDIR)
-
-$(OBJDIR):
- -mkdir -p $(OBJDIR)
-
-
-
# ----------------------------------------------------
# Release Target
# ----------------------------------------------------