<commit_before>override CXXFLAGS = -std=c++11 -Wall
LIBFLAGS = -fPIC
DEPS = Node.o File.o Directory.o FileSystem.o
EXAMPLES = example_write.o example_read.o interpreter.o

all: SpFS examples

debug: CXXFLAGS += -g
debug: clean all

clean:
	rm -f *.o

install:
	cp libSpFS.so /usr/lib
	mkdir /usr/include/SpFS
	cp *.hpp /usr/include/SpFS

uninstall:
	rm /usr/lib/libSpFS.so
	rm -r /usr/include/SpFS

SpFS: $(DEPS)
	$(CXX) $(CXXFLAGS) $(LIBFLAGS) -shared $(DEPS) -o libSpFS.so

examples: $(EXAMPLES)
	$(CXX) $(CXXFLAGS) example_write.o -L "." -lSpFS -o example_write
	$(CXX) $(CXXFLAGS) example_read.o -L "." -lSpFS -o example_read
	$(CXX) $(CXXFLAGS) interpreter.o -L "." -lSpFS -o interpreter

Node.o: Node.hpp Node.cpp
	$(CXX) $(CXXFLAGS) $(LIBFLAGS) -c Node.cpp -o Node.o

File.o: File.hpp File.cpp
	$(CXX) $(CXXFLAGS) $(LIBFLAGS) -c File.cpp -o File.o

Directory.o: Directory.hpp Directory.cpp
	$(CXX) $(CXXFLAGS) $(LIBFLAGS) -c Directory.cpp -o Directory.o

FileSystem.o: FileSystem.hpp FileSystem.cpp
	$(CXX) $(CXXFLAGS) $(LIBFLAGS) -c FileSystem.cpp -o FileSystem.o
<commit_msg>install target now correctly overrides files<commit_after>override CXXFLAGS = -std=c++11 -Wall
LIBFLAGS = -fPIC
DEPS = Node.o File.o Directory.o FileSystem.o
EXAMPLES = example_write.o example_read.o interpreter.o

all: SpFS examples

debug: CXXFLAGS += -g
debug: clean all

clean:
	rm -f *.o

install:
	cp -f libSpFS.so /usr/lib
	mkdir -p /usr/include/SpFS
	cp -f *.hpp /usr/include/SpFS

uninstall:
	rm /usr/lib/libSpFS.so
	rm -r /usr/include/SpFS

SpFS: $(DEPS)
	$(CXX) $(CXXFLAGS) $(LIBFLAGS) -shared $(DEPS) -o libSpFS.so

examples: $(EXAMPLES)
	$(CXX) $(CXXFLAGS) example_write.o -L "." -lSpFS -o example_write
	$(CXX) $(CXXFLAGS) example_read.o -L "." -lSpFS -o example_read
	$(CXX) $(CXXFLAGS) interpreter.o -L "." -lSpFS -o interpreter

Node.o: Node.hpp Node.cpp
	$(CXX) $(CXXFLAGS) $(LIBFLAGS) -c Node.cpp -o Node.o

File.o: File.hpp File.cpp
	$(CXX) $(CXXFLAGS) $(LIBFLAGS) -c File.cpp -o File.o

Directory.o: Directory.hpp Directory.cpp
	$(CXX) $(CXXFLAGS) $(LIBFLAGS) -c Directory.cpp -o Directory.o

FileSystem.o: FileSystem.hpp FileSystem.cpp
	$(CXX) $(CXXFLAGS) $(LIBFLAGS) -c FileSystem.cpp -o FileSystem.o

{'fraction_non_alphanumeric': 0.16530797101449277, 'fraction_numerical': 0.0018115942028985507, 'mean_word_length': 3.7813852813852815, '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': '2379020', 'n_tokens_mistral': 935, 'n_tokens_neox': 874, 'n_words': 238}