Clean up build process and add more doc.
This commit is contained in:
parent
6e05f1334a
commit
7258f162c9
4
Makefile
4
Makefile
@ -62,12 +62,16 @@ test: $(TARGET) $(TEST_BIN_FILES)
|
|||||||
@ $(PRINT) "$(WHITE_BOLD)Running validation tests...$(RESETCOLOR)"
|
@ $(PRINT) "$(WHITE_BOLD)Running validation tests...$(RESETCOLOR)"
|
||||||
$(BATS) $(TEST_VAL_DIR)
|
$(BATS) $(TEST_VAL_DIR)
|
||||||
|
|
||||||
|
# Clean out objects, binaries, and built artifacts.
|
||||||
clean:
|
clean:
|
||||||
@ $(PRINT) "$(WHITE_BOLD)Cleaning up...$(RESETCOLOR)"
|
@ $(PRINT) "$(WHITE_BOLD)Cleaning up...$(RESETCOLOR)"
|
||||||
rm -rf $(OBJ_DIR)/*.o $(TEST_OBJ_DIR)/*.o $(TEST_BUILD_DIR)/test.out $(TARGET) $(GRAM_DIR)/* $(UNITY_OBJ)
|
rm -rf $(OBJ_DIR)/*.o $(TEST_OBJ_DIR)/*.o $(TEST_BUILD_DIR)/test.out $(TARGET) $(GRAM_DIR)/* $(UNITY_OBJ)
|
||||||
|
|
||||||
|
# Get LOC.
|
||||||
lines:
|
lines:
|
||||||
@ wc -l $(SRC_FILES) $(INC_FILES) $(GRAM_SRC)
|
@ wc -l $(SRC_FILES) $(INC_FILES) $(GRAM_SRC)
|
||||||
|
|
||||||
.PHONY: all clean test nocolor release run lines
|
.PHONY: all clean test nocolor release run lines
|
||||||
|
|
||||||
|
# Run this intermediary even though make thinks it's useless.
|
||||||
.PRECIOUS: $(TEST_OBJ_FILES)
|
.PRECIOUS: $(TEST_OBJ_FILES)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user