<commit_before>CC	?= gcc
CFLAGS = -O2 -std=c89
LDFLAGS +=
CFDEBUG = -g3 -std=c89 -pedantic -Wall -Wunused-parameter -Wlong-long\
		  -Wsign-conversion -Wconversion -Wimplicit-function-declaration
EXEC = dfc
OBJS = dfc.o

PREFIX=/usr/local
BINDIR=${PREFIX}/bin
MANDIR=${PREFIX}/man

all: ${EXEC}

dfc.o: dfc.c

${EXEC}: ${OBJS}
	${CC} ${LDFLAGS} -o ${EXEC} ${OBJS}

install-main: dfc
	install -m755 dfc ${BINDIR}

install-data: dfc.1
	install -Dm644 dfc.1 ${MANDIR}/man1/dfc.1

install: all install-main install-data

debug: ${OBJS}
	${CC} ${CFDEBUG} ${LDFLAGS} -o ${EXEC} ${OBJS}

clean:
	rm -rf *.o

mrproper: clean
	rm ${EXEC}

.PHONY: all clean mrproper install install-main install-data<commit_msg>updated makefile to implement DESTDIR<commit_after>CC	?= gcc
CFLAGS = -O2 -std=c89
LDFLAGS +=
CFDEBUG = -g3 -std=c89 -pedantic -Wall -Wunused-parameter -Wlong-long\
		  -Wsign-conversion -Wconversion -Wimplicit-function-declaration
EXEC = dfc
OBJS = dfc.o

PREFIX=/usr/local
BINDIR=${PREFIX}/bin
MANDIR=${PREFIX}/man

all: ${EXEC}

dfc.o: dfc.c

${EXEC}: ${OBJS}
	${CC} ${LDFLAGS} -o ${EXEC} ${OBJS}

install-main: dfc
	install -Dm755 dfc ${DESTDIR}${BINDIR}/dfc

install-data: dfc.1
	install -Dm644 dfc.1 ${DESTDIR}${MANDIR}/man1/dfc.1

install: all install-main install-data

debug: ${OBJS}
	${CC} ${CFDEBUG} ${LDFLAGS} -o ${EXEC} ${OBJS}

clean:
	rm -rf *.o

mrproper: clean
	rm ${EXEC}

.PHONY: all clean mrproper install install-main install-data
{'fraction_non_alphanumeric': 0.17412250516173433, 'fraction_numerical': 0.02202339986235375, 'mean_word_length': 4.048611111111111, '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': '5943315', 'n_tokens_mistral': 631, 'n_tokens_neox': 610, 'n_words': 149}