From 7258f162c9b0fcf039ab304a73050baabefef321 Mon Sep 17 00:00:00 2001 From: Jacob Date: Sat, 12 Apr 2025 14:36:43 -0400 Subject: [PATCH] Clean up build process and add more doc. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 93812e2..83eb9ef 100644 --- a/Makefile +++ b/Makefile @@ -62,12 +62,16 @@ test: $(TARGET) $(TEST_BIN_FILES) @ $(PRINT) "$(WHITE_BOLD)Running validation tests...$(RESETCOLOR)" $(BATS) $(TEST_VAL_DIR) +# Clean out objects, binaries, and built artifacts. clean: @ $(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) +# Get LOC. lines: @ wc -l $(SRC_FILES) $(INC_FILES) $(GRAM_SRC) .PHONY: all clean test nocolor release run lines + +# Run this intermediary even though make thinks it's useless. .PRECIOUS: $(TEST_OBJ_FILES)