diff --git a/Makefile b/Makefile index ff9953f..8853883 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,10 @@ TARGET := cval.out .PHONY: all clean -all: $(TARGET) +all: init $(TARGET) + +init: + mkdir -p $(BUILD_DIR) $(TARGET): $(OBJ) $(CC) $(CFLAGS) -o $(BUILD_DIR)/$(TARGET) $(OBJ)