<commit_before>OBJS=actions.o ast.o check.o ecc.tab.o errors.o generator.o lex.yy.o main.o
DEPS=globals.h version.h
CXXFLAGS+=--std=c++11 -g

ecc: $(OBJS) $(DEPS)
	g++ $(OBJS) $(CXXFLAGS) -o ecc

ecc.tab.c: ecc.y
	bison -d ecc.y

lex.yy.c: ecc.l
	flex ecc.l

lex.yy.o: lex.yy.c 
	g++ -c lex.yy.c -o lex.yy.o $(CXXFLAGS)

ecc.tab.o: ecc.tab.c ecc.tab.h
	g++ -c ecc.tab.c -o ecc.tab.o $(CXXFLAGS)

clean:
	rm -f *.o *~ *tab* lex.yy.* a.out ecc
<commit_msg>Issue #9 implemented automatic dependencies<commit_after>OBJS=actions.o ast.o check.o ecc.tab.o errors.o generator.o lex.yy.o main.o
DEPS=globals.h version.h
CXXFLAGS+=--std=c++11 -g

ecc: $(OBJS) $(DEPS)
	g++ $(OBJS) $(CXXFLAGS) -o ecc

-include $(OBJS:.o=.d)

ecc.tab.cpp: ecc.y
	bison -d ecc.y -o ecc.tab.cpp
	mv ecc.tab.hpp ecc.tab.h

lex.yy.cpp: ecc.l
	flex -o lex.yy.cpp ecc.l

%.o : %.cpp
	g++ -c $*.cpp $(CXXFLAGS)
	g++ -c $*.cpp -MM $(XCCFLAGS) > $*.d

clean:
	rm -f *.o *~ *tab* lex.yy.* a.out ecc *.d

{'fraction_non_alphanumeric': 0.21842650103519667, 'fraction_numerical': 0.005175983436853002, 'mean_word_length': 2.8373015873015874, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2661933', 'n_tokens_mistral': 493, 'n_tokens_neox': 468, 'n_words': 117}