<commit_before>CXX=g++ -pipe -I./ -std=c++11 -ggdb -Wall
#CXX=clang -pipe -I./ -stdlib=libc++ -lc++ -std=c++11 -ggdb -Wall

all: main

# prints byte code name/value table
table-bc: tiny_vm.hpp
	ln -s tiny_vm.hpp tiny_vm.cpp
	$(CXX) -DTINY_VM_PRINT_BYTE_CODES tiny_vm.cpp -o table-bc
	rm tiny_vm.cpp

main: Makefile main.cpp *.hpp
	$(CXX) main.cpp -o main

test: test.cpp *.hpp
	$(CXX) test.cpp -o test


test-vm: test_tiny_vm.cpp *.hpp
	$(CXX) test_tiny_vm.cpp -o test-vm

byte-coded: ./test/byte_coded.cpp *.hpp
	$(CXX) ./test/byte_coded.cpp -o byte-coded

test-zipper: ./test/test_zipper.cpp *.hpp
	$(CXX) ./test/test_zipper.cpp -o test-zipper<commit_msg>Add TAGS to the Makefile<commit_after>CXX=g++ -pipe -I./ -std=c++11 -ggdb -Wall
#CXX=clang -pipe -I./ -stdlib=libc++ -lc++ -std=c++11 -ggdb -Wall

all: main

# prints byte code name/value table
table-bc: tiny_vm.hpp
	ln -s tiny_vm.hpp tiny_vm.cpp
	$(CXX) -DTINY_VM_PRINT_BYTE_CODES tiny_vm.cpp -o table-bc
	rm tiny_vm.cpp

main: Makefile main.cpp *.hpp
	$(CXX) main.cpp -o main

test: test.cpp *.hpp
	$(CXX) test.cpp -o test


test-vm: test_tiny_vm.cpp *.hpp
	$(CXX) test_tiny_vm.cpp -o test-vm

byte-coded: ./test/byte_coded.cpp *.hpp
	$(CXX) ./test/byte_coded.cpp -o byte-coded

test-zipper: ./test/test_zipper.cpp *.hpp
	$(CXX) ./test/test_zipper.cpp -o test-zipper

TAGS: ./*.cpp ./*.hpp ./test/*.hpp
	find -iname "*cpp" -o -iname "*hpp" | etags -
{'fraction_non_alphanumeric': 0.18110795454545456, 'fraction_numerical': 0.005681818181818182, 'mean_word_length': 3.193452380952381, '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': '5635621', 'n_tokens_mistral': 651, 'n_tokens_neox': 607, 'n_words': 154}