<commit_before>CC = g++
LIBS = -lcppunit -ldl
OBJS = PayStationImpl.o main.o ReceiptImpl.o
HEADERDIRS = ../include
CCFLAGS = -I $(HEADERDIRS)

testPS: $(OBJS)
	$(CC) -o $@ $(OBJS) $(LIBS)

%.o : %.cc
	$(CC) $(CCFLAGS) -c $<

.PHONY : clean
clean :
	rm -f *.o *~

## generate the prerequistes and append to the desired file 
.prereq : $(OBJS:.o=.cc) $(wildcard $(HEADERDIRS)/*.h) Makefile
	rm -f .prereq 
	$(CC) $(CCFLAGS) -MM $(OBJS:.o=.cc) >> ./.prereq
## include the generated prerequisite file 
include .prereq<commit_msg>Ch 6: make, Iteration 1, fixes Makefile to generate .d files<commit_after>CC = g++
LIBS = -lcppunit -ldl
OBJS = PayStationImpl.o main.o ReceiptImpl.o
HEADERDIRS = ../include
CCFLAGS = -I $(HEADERDIRS)

testPS: $(OBJS)
	$(CC) -o $@ $(OBJS) $(LIBS)

%.o : %.cc
	$(CC) $(CCFLAGS) -c $<
	$(CC) $(CCFLAGS) -MM -MP -MT $@ $< > $(basename $@).d


.PHONY : clean
clean :
	rm -f *.o *~ *.d


## include the generated dependency files
-include $(addsuffix .d,$(basename $(OBJS)))
{'fraction_non_alphanumeric': 0.2052313883299799, 'fraction_numerical': 0.002012072434607646, 'mean_word_length': 3.4618834080717487, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '1143171', 'n_tokens_mistral': 432, 'n_tokens_neox': 396, 'n_words': 117}