<commit_before>-include Config.mk

######################################################################

EXE	:= gleris
CXXFLAGS+= -I.
CONFS	:= Config.mk config.h gleri/config.h config.status

include data/Module.mk
include gleri/Module.mk
include test/Module.mk

INC	:= $(wildcard *.h)
SRC	:= $(wildcard *.cc) ${DCC}
OBJ	:= $(addprefix .o/,$(SRC:.cc=.o))

######################################################################

.PHONY:	all run clean distclean maintainer-clean install uninstall

all:	${EXE}

${EXE}:	${OBJ} ${LIBA}
	@echo "Linking $@ ..."
	@${LD} ${LDFLAGS} -o $@ ${OBJ} ${LIBA} ${LIBS}

.o/%.o:	%.cc
	@echo "    Compiling $< ..."
	@[ -d $(dir $@) ] || mkdir -p $(dir $@)
	@${CXX} ${CXXFLAGS} -MMD -MT "$(<:.cc=.s) $@" -o $@ -c $<

%.s:	%.cc
	@echo "    Assembling $< ..."
	@${CXX} ${CXXFLAGS} -S -o $@ -c $<

################ Installation ##########################################

ifdef BINDIR
EXEI	:= $(addprefix ${BINDIR}/,${EXE})

install:	${EXEI}
${EXEI}:	${EXE}
	@echo "Installing $< as $@ ..."
	@${INSTALLEXE} $< $@

uninstall:
	@echo "Removing ${EXEI} ..."
	@rm -f ${EXEI}
endif

################ Maintenance ###########################################

clean:
	@rm -f ${EXE}
	@rm -rf .o

distclean:	clean
	@rm -f ${CONFS}

maintainer-clean: distclean

${CONFS}:	configure Config.mk.in config.h.in gleri/config.h.in
	@if [ -x config.status ]; then echo "Reconfiguring ..."; ./config.status; \
	else echo "Running configure ..."; ./configure; fi

${OBJ}: Makefile ${CONFS}

-include ${OBJ:.o=.d}
<commit_msg>Add make dist target<commit_after>-include Config.mk

######################################################################

EXE	:= gleris
CXXFLAGS+= -I.
CONFS	:= Config.mk config.h gleri/config.h config.status

include data/Module.mk
include gleri/Module.mk
include test/Module.mk

INC	:= $(wildcard *.h)
SRC	:= $(wildcard *.cc) ${DCC}
OBJ	:= $(addprefix .o/,$(SRC:.cc=.o))

######################################################################

.PHONY:	all run clean distclean maintainer-clean install uninstall

all:	${EXE}

${EXE}:	${OBJ} ${LIBA}
	@echo "Linking $@ ..."
	@${LD} ${LDFLAGS} -o $@ ${OBJ} ${LIBA} ${LIBS}

.o/%.o:	%.cc
	@echo "    Compiling $< ..."
	@[ -d $(dir $@) ] || mkdir -p $(dir $@)
	@${CXX} ${CXXFLAGS} -MMD -MT "$(<:.cc=.s) $@" -o $@ -c $<

%.s:	%.cc
	@echo "    Assembling $< ..."
	@${CXX} ${CXXFLAGS} -S -o $@ -c $<

################ Installation ##########################################

ifdef BINDIR
EXEI	:= $(addprefix ${BINDIR}/,${EXE})

install:	${EXEI}
${EXEI}:	${EXE}
	@echo "Installing $< as $@ ..."
	@${INSTALLEXE} $< $@

uninstall:
	@echo "Removing ${EXEI} ..."
	@rm -f ${EXEI}
endif

ifdef MAJOR
DISTVER	:= ${MAJOR}.${MINOR}
DISTNAM	:= ${NAME}-${DISTVER}
DISTTAR	:= ${DISTNAM}.tar.bz2

dist:
	@echo "Generating ${DISTTAR} ..."
	@mkdir .${DISTNAM}
	@rm -f ${DISTTAR}
	@cp -r * .${DISTNAM} && mv .${DISTNAM} ${DISTNAM}
	@+${MAKE} -sC ${DISTNAM} maintainer-clean
	@tar acf ${DISTTAR} ${DISTNAM} && rm -rf ${DISTNAM}
endif

################ Maintenance ###########################################

clean:
	@rm -f ${EXE}
	@rm -rf .o

distclean:	clean
	@rm -f ${CONFS}

maintainer-clean: distclean

${CONFS}:	configure Config.mk.in config.h.in gleri/config.h.in
	@if [ -x config.status ]; then echo "Reconfiguring ..."; ./config.status; \
	else echo "Running configure ..."; ./configure; fi

${OBJ}: Makefile ${CONFS}

-include ${OBJ:.o=.d}

{'fraction_non_alphanumeric': 0.3578330893118594, 'fraction_numerical': 0.00029282576866764275, 'mean_word_length': 4.030927835051546, 'pattern_counts': {'":': 0, '<': 17, '<?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': '6655076', 'n_tokens_mistral': 1421, 'n_tokens_neox': 1267, 'n_words': 304}