<commit_before>PHONY = default tests libgtest.a tests clean list

default:
	@make all

list:
	echo $(PHONY)

# TODO: use variables and stuff, this is super messy.

tests: moving_avg_ticker_test accel_test

moving_avg_ticker_test: libgtest.a moving_avg_ticker_test.cc ../src
	@clang++ -I../lib/gtest-1.7.0/include -pthread accel_test.cc ../src/moving_avg_ticker.c libgtest.a -o moving_avg_ticker_test

accel_test: libgtest.a accel_test.cc ../src
	@clang++ -I../lib/gtest-1.7.0/include -pthread accel_test.cc ../src/accel.c ../src/moving_avg_ticker.c libgtest.a -o accel_test

libgtest.a:
	clang++ -I../lib/gtest-1.7.0/include -I../lib/gtest-1.7.0 -c ../lib/gtest-1.7.0/src/gtest-all.cc -lpthread
	ar -rv libgtest.a gtest-all.o

run: moving_avg_ticker_test
	./moving_avg_ticker_test
	./accel_test

clean:
	rm libgtest.a gtest-all.o test_executable<commit_msg>Makefile is now 10x better, I suppose, right guys?<commit_after>PHONY = default tests libgtest.a tests clean list

default:
	@make all

list:
	echo $(PHONY)

# TODO: use variables and stuff, this is super messy.

tests: moving_avg_ticker_test accel_test

moving_avg_ticker_test: libgtest.a moving_avg_ticker_test.cc ../src/moving_avg_ticker.h ../src/moving_avg_ticker.c
	@clang++ -I../lib/gtest-1.7.0/include -pthread moving_avg_ticker_test.cc ../src/moving_avg_ticker.c libgtest.a -o moving_avg_ticker_test

accel_test: libgtest.a accel_test.cc ../src
	@clang++ -I../lib/gtest-1.7.0/include -pthread accel_test.cc ../src/accel.c ../src/moving_avg_ticker.c libgtest.a -o accel_test

libgtest.a:
	clang++ -I../lib/gtest-1.7.0/include -I../lib/gtest-1.7.0 -c ../lib/gtest-1.7.0/src/gtest-all.cc -lpthread
	ar -rv libgtest.a gtest-all.o

run: moving_avg_ticker_test
	./moving_avg_ticker_test
	./accel_test

clean:
	rm libgtest.a gtest-all.o test_executable
{'fraction_non_alphanumeric': 0.14033149171270717, 'fraction_numerical': 0.017679558011049725, 'mean_word_length': 3.703896103896104, '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': '53605', 'n_tokens_mistral': 807, 'n_tokens_neox': 770, 'n_words': 148}