<commit_before># COMPILER
CC:=g++
CFLAGS:=-Wall -ggdb -std=c++11

# APP
APPNAME:=classc

# APP DIRECTORIES
BUILDDIR:=bin
INCLUDEDIR:=include
LIBDIR:=lib
SRCDIR:=src
TMPDIR:=obj

# SOURCES
MAINFILE=$(SRCDIR)/main.cpp
SOURCES:=$(shell find $(SRCDIR) -name '*.cpp')
_SOURCESFOLDERS:=$(shell find $(SRCDIR) -type d)
SOURCESFOLDERS:=$(subst ./,,$(_SOURCESFOLDERS))

# OBJECTS
_OBJECTS:=$(addprefix $(TMPDIR)/,$(SOURCES:%.cpp=%.o))
_OBJECTS:=$(subst ./,,$(_OBJECTS))
OBJECTS:=$(subst $(TMPDIR)/$(SRCDIR)/main.o,,$(_OBJECTS))

# EXTERNAL DEPENDENCIES
#SHAREDIR:=../shared
#SHAREDLIB:=$(SHAREDIR)/lib
#SHAREDHEADERS:=$(SHAREDIR)/include
_EXTLIBS:=
EXTLIBS:=$(addprefix -l,$(_EXTLIBS))

all: check $(OBJECTS) $(MAINFILE)
	@echo "========================="
	@echo " Building $(APPNAME) ..."
	@echo "========================="
	$(CC) $(CFLAGS) -I$(INCLUDEDIR) $(MAINFILE) $(OBJECTS) $(EXTLIBS) -o $(BUILDDIR)/$(APPNAME)

$(TMPDIR)/%.o: %.cpp
	@echo "------------------------"
	@echo "> COMPILING $< ..."
	$(CC) $(CFLAGS) -I$(INCLUDEDIR) $< -c -o $@

check:
	@test -d $(BUILDDIR) || mkdir $(BUILDDIR)
	@$(shell find $(SRCDIR) -depth -type d -print | cpio -pd $(TMPDIR))

clean:
	-rm -Rf $(TMPDIR)

.PHONY: clean all<commit_msg>Added install target to Makefile<commit_after># COMPILER
CC:=g++
CFLAGS:=-Wall -ggdb -std=c++11

# APP
APPNAME:=classc

# APP DIRECTORIES
BUILDDIR:=bin
INCLUDEDIR:=include
LIBDIR:=lib
SRCDIR:=src
TMPDIR:=obj

# SOURCES
MAINFILE=$(SRCDIR)/main.cpp
SOURCES:=$(shell find $(SRCDIR) -name '*.cpp')
_SOURCESFOLDERS:=$(shell find $(SRCDIR) -type d)
SOURCESFOLDERS:=$(subst ./,,$(_SOURCESFOLDERS))

# OBJECTS
_OBJECTS:=$(addprefix $(TMPDIR)/,$(SOURCES:%.cpp=%.o))
_OBJECTS:=$(subst ./,,$(_OBJECTS))
OBJECTS:=$(subst $(TMPDIR)/$(SRCDIR)/main.o,,$(_OBJECTS))

# EXTERNAL DEPENDENCIES
#SHAREDIR:=../shared
#SHAREDLIB:=$(SHAREDIR)/lib
#SHAREDHEADERS:=$(SHAREDIR)/include
_EXTLIBS:=
EXTLIBS:=$(addprefix -l,$(_EXTLIBS))

# INSTALLATION VARS
INSTALLDIR:=/usr/local/bin

all: check $(OBJECTS) $(MAINFILE)
	@echo "========================="
	@echo " Building $(APPNAME) ..."
	@echo "========================="
	$(CC) $(CFLAGS) -I$(INCLUDEDIR) $(MAINFILE) $(OBJECTS) $(EXTLIBS) -o $(BUILDDIR)/$(APPNAME)

$(TMPDIR)/%.o: %.cpp
	@echo "------------------------"
	@echo "> COMPILING $< ..."
	$(CC) $(CFLAGS) -I$(INCLUDEDIR) $< -c -o $@

check:
	@test -d $(BUILDDIR) || mkdir $(BUILDDIR)
	@$(shell find $(SRCDIR) -depth -type d -print | cpio -pd $(TMPDIR))

install:
	@echo "==============================="
	@echo "> INSTALLING $(APPNAME) ..."
	@echo "==============================="
	@echo "InstallDir is $(INSTALLDIR)"
	@sudo test $(INSTALLDIR)/$(APPNAME) || rm $(INSTALLDIR)/$(APPNAME)
	@sudo cp $(BUILDDIR)/$(APPNAME) $(INSTALLDIR)
	@echo "DONE!"

clean:
	-rm -Rf $(TMPDIR)

.PHONY: clean all
{'fraction_non_alphanumeric': 0.2939491586108127, 'fraction_numerical': 0.0014321518080916578, 'mean_word_length': 5.140659340659341, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2413104', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1132, 'n_words': 215}