<commit_before>CFLAGS=-std=c++11 -I../../src -I../../test -Isrc
LDFLAGS=`find ../../out -type f -not \( -name main.o -o -name configuration.o \)` \
        ../../testout/main.o -lncurses
O=out
S=src
T=test
TO=testout
CXX=clang++

files=$O/newmove.o      \

testfiles = ${TO}/newmove_tests.o    \

all: ${files}

$O/%.o: $S/%.cc $S/%.hh
	@mkdir -p $O
	${CXX} -o $@ -c $< ${CFLAGS}

$O/%.o: $S/%.cc
	@mkdir -p $O
	${CXX} -o $@ -c $< ${CFLAGS}

${TO}/%.o: $T/%.cc
	@mkdir -p ${TO}
	${CXX} -o $@ -c $< ${CFLAGS}

clean:
	[ ! -d out ] || rm -R out
	[ -z "`find -name '*~'`" ] || rm `find -name '*~'`

cleantest:
	rm -R ${TO}

test: ${files} ${testfiles}
	${CXX} -o $T/out $^ ${CFLAGS} ${LDFLAGS}
	./$T/out

tags:
	etags `find src -name '*.cc'`<commit_msg>Ensure ${TO} exists before removing it<commit_after>CFLAGS=-std=c++11 -I../../src -I../../test -Isrc
LDFLAGS=`find ../../out -type f -not \( -name main.o -o -name configuration.o \)` \
        ../../testout/main.o -lncurses
O=out
S=src
T=test
TO=testout
CXX=clang++

files=$O/newmove.o      \

testfiles = ${TO}/newmove_tests.o    \

all: ${files}

$O/%.o: $S/%.cc $S/%.hh
	@mkdir -p $O
	${CXX} -o $@ -c $< ${CFLAGS}

$O/%.o: $S/%.cc
	@mkdir -p $O
	${CXX} -o $@ -c $< ${CFLAGS}

${TO}/%.o: $T/%.cc
	@mkdir -p ${TO}
	${CXX} -o $@ -c $< ${CFLAGS}

clean:
	[ ! -d out ] || rm -R out
	[ -z "`find -name '*~'`" ] || rm `find -name '*~'`

cleantest:
	[ ! -d ${TO} ] || rm -R ${TO}

test: ${files} ${testfiles}
	${CXX} -o $T/out $^ ${CFLAGS} ${LDFLAGS}
	./$T/out

tags:
	etags `find src -name '*.cc'`
{'fraction_non_alphanumeric': 0.2968243681140635, 'fraction_numerical': 0.002592352559948153, 'mean_word_length': 2.3062098501070665, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1574202', 'n_tokens_mistral': 766, 'n_tokens_neox': 724, 'n_words': 176}