<commit_before>include config.mk

SRC += abduco.c
OBJ = ${SRC:.c=.o}

all: clean options abduco

options:
	@echo abduco build options:
	@echo "CFLAGS   = ${CFLAGS}"
	@echo "LDFLAGS  = ${LDFLAGS}"
	@echo "CC       = ${CC}"

config.h:
	cp config.def.h config.h

.c.o:
	@echo CC $<
	@${CC} -c ${CFLAGS} $<

${OBJ}: config.h config.mk

abduco: ${OBJ}
	@echo CC -o $@
	@${CC} -o $@ ${OBJ} ${LDFLAGS}

debug: clean
	@make CFLAGS='${DEBUG_CFLAGS}'

clean:
	@echo cleaning
	@rm -f abduco ${OBJ} abduco-${VERSION}.tar.gz

dist: clean
	@echo creating dist tarball
	@mkdir -p abduco-${VERSION}
	@cp -R LICENSE Makefile README config.def.h config.mk \
		${SRC} client.c server.c forkpty-aix.c abduco.1 abduco-${VERSION}
	@tar -cf abduco-${VERSION}.tar abduco-${VERSION}
	@gzip abduco-${VERSION}.tar
	@rm -rf abduco-${VERSION}

install: abduco
	@echo stripping executable
	@strip -s abduco
	@echo installing executable file to ${DESTDIR}${PREFIX}/bin
	@mkdir -p ${DESTDIR}${PREFIX}/bin
	@cp -f abduco ${DESTDIR}${PREFIX}/bin
	@chmod 755 ${DESTDIR}${PREFIX}/bin/abduco
	@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
	@sed "s/VERSION/${VERSION}/g" < abduco.1 > ${DESTDIR}${MANPREFIX}/man1/abduco.1
	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/abduco.1<commit_msg>Add debug.c to Makefile tarball generation target<commit_after>include config.mk

SRC += abduco.c
OBJ = ${SRC:.c=.o}

all: clean options abduco

options:
	@echo abduco build options:
	@echo "CFLAGS   = ${CFLAGS}"
	@echo "LDFLAGS  = ${LDFLAGS}"
	@echo "CC       = ${CC}"

config.h:
	cp config.def.h config.h

.c.o:
	@echo CC $<
	@${CC} -c ${CFLAGS} $<

${OBJ}: config.h config.mk

abduco: ${OBJ}
	@echo CC -o $@
	@${CC} -o $@ ${OBJ} ${LDFLAGS}

debug: clean
	@make CFLAGS='${DEBUG_CFLAGS}'

clean:
	@echo cleaning
	@rm -f abduco ${OBJ} abduco-${VERSION}.tar.gz

dist: clean
	@echo creating dist tarball
	@mkdir -p abduco-${VERSION}
	@cp -R LICENSE Makefile README config.def.h config.mk \
		${SRC} debug.c client.c server.c forkpty-aix.c abduco.1 abduco-${VERSION}
	@tar -cf abduco-${VERSION}.tar abduco-${VERSION}
	@gzip abduco-${VERSION}.tar
	@rm -rf abduco-${VERSION}

install: abduco
	@echo stripping executable
	@strip -s abduco
	@echo installing executable file to ${DESTDIR}${PREFIX}/bin
	@mkdir -p ${DESTDIR}${PREFIX}/bin
	@cp -f abduco ${DESTDIR}${PREFIX}/bin
	@chmod 755 ${DESTDIR}${PREFIX}/bin/abduco
	@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
	@sed "s/VERSION/${VERSION}/g" < abduco.1 > ${DESTDIR}${MANPREFIX}/man1/abduco.1
	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/abduco.1
{'fraction_non_alphanumeric': 0.18664643399089528, 'fraction_numerical': 0.010622154779969651, 'mean_word_length': 4.150390625, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '4237863', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1095, 'n_words': 264}