Browse Source

fix the thing where make doesn't work if those directories don't already exist

tristangurtler 3 years ago
parent
commit
27932e12b2
1 changed files with 7 additions and 1 deletions
  1. 7 1
      dclxvi-20130329/Makefile

+ 7 - 1
dclxvi-20130329/Makefile

@@ -10,7 +10,13 @@ CC = gcc
 CFLAGS = -std=c99 -O3 -fomit-frame-pointer -I$(INC_PATH)
 LDFLAGS = -lm
 
-all: as check c
+all: $(BIN_PATH) $(OBJ_PATH) as check c
+
+$(OBJ_PATH):
+	mkdir -p $@
+
+$(BIN_PATH):
+	mkdir -p $@
 
 C_BIN += $(BIN_PATH)/bilintest-c
 C_BIN += $(BIN_PATH)/speedtest-c