<commit_before>INCLUDE ?= -I../include -I../rapidjson/include -I../catch/single_include
TARGET ?= autojsoncxx_catch

PYTHON3 ?= python3
GENERATOR_SCRIPT = ../autojsoncxx.py
DEFINITION_FILE ?= ../examples/userdef.json
GENERATED_HPP ?= userdef.hpp

all: $(TARGET)

$(TARGET): main.o test.o $(GENERATED_HPP)
	$(CXX) $(CXXFLAGS) main.o test.o -o $(TARGET)
	
$(GENERATED_HPP): $(DEFINITION_FILE) $(GENERATOR_SCRIPT)
	$(PYTHON3) $(GENERATOR_SCRIPT) --out=$(GENERATED_HPP) $(DEFINITION_FILE)

main.o: main.cpp $(GENERATED_HPP)
	$(CXX) $(CXXFLAGS) $(INCLUDE) -c main.cpp -o main.o

test.o: test.cpp $(GENERATED_HPP)
	$(CXX) $(CXXFLAGS) $(INCLUDE) -c test.cpp -o test.o
	
.PHONY: clean test

test: $(TARGET)
	./$(TARGET) --success

clean:
	rm *.o $(TARGET) $(GENERATED_HPP)<commit_msg>Update Makefile<commit_after>INCLUDE ?= -I../include -I../rapidjson/include -I../catch/single_include
TARGET ?= autojsoncxx_catch

PYTHON3 ?= python3
GENERATOR_SCRIPT = ../autojsoncxx.py
DEFINITION_FILE ?= ../examples/userdef.json
GENERATED_HPP ?= userdef.hpp

all: $(TARGET)

$(TARGET): main.o test.o $(GENERATED_HPP)
	$(CXX) $(CXXFLAGS) main.o test.o -o $(TARGET)
	
$(GENERATED_HPP): $(DEFINITION_FILE) $(GENERATOR_SCRIPT)
	$(PYTHON3) $(GENERATOR_SCRIPT) --out=$(GENERATED_HPP) $(DEFINITION_FILE)

main.o: main.cpp 
	$(CXX) $(CXXFLAGS) $(INCLUDE) -c main.cpp -o main.o

test.o: test.cpp $(GENERATED_HPP)
	$(CXX) $(CXXFLAGS) $(INCLUDE) -c test.cpp -o test.o
	
.PHONY: clean test

test: $(TARGET)
	./$(TARGET) --success

clean:
	rm *.o $(TARGET) $(GENERATED_HPP)
{'fraction_non_alphanumeric': 0.1905071521456437, 'fraction_numerical': 0.0039011703511053317, 'mean_word_length': 4.616788321167883, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3251851', 'n_tokens_mistral': 659, 'n_tokens_neox': 595, 'n_words': 129}