<commit_before>
.PHONY: all prepare libcollections

PREFIX:=${CURDIR}/prefix
export PREFIX

all: prepare libcollections
	
prepare:
	@mkdir -p ${PREFIX} ${PREFIX}/bin ${PREFIX}/lib

libcollections: prefix/include/libcollections/libcollections-config.h

prefix/include/libcollections/libcollections-config.h:
	mkdir -p build/libcollections
	cd build/libcollections && ${CURDIR}/libcollections/configure --prefix=${PREFIX}
	${MAKE} -C build/libcollections install<commit_msg>add libjit make rules, which doesn't support out-of-tree builds... grrr.<commit_after>
.PHONY: all prepare clean

DEPSPREFIX:=${CURDIR}/prefix

LIBCOLLECTIONS_H:=prefix/include/libcollections/libcollections-config.h
LIBJIT_H:=prefix/include/jit/jit.h

all: prepare libcollections libjit

clean:
	rm -rf ${DEPSPREFIX} build
	
prepare:
	@mkdir -p ${DEPSPREFIX} ${DEPSPREFIX}/bin ${DEPSPREFIX}/lib

# basic macro-based C data structures (array, vector, hashtables, string wrappers, etc.)

libcollections: ${LIBCOLLECTIONS_H}

${LIBCOLLECTIONS_H}:
	mkdir -p build/libcollections
	cd build/libcollections && ${CURDIR}/libcollections/configure --prefix=${DEPSPREFIX}
	${MAKE} -C build/libcollections install

# GNU'd just-in-time compiler, portable, fast?

libjit: ${LIBJIT_H}

${LIBJIT_H}:
	mkdir -p build
	rm -rf build/libjit
	cp -rf ${CURDIR}/libjit build/libjit
	cd build/libjit && ./configure --prefix=${DEPSPREFIX}
	${MAKE} -C build/libjit install
	${MAKE} -C build/libjit
{'fraction_non_alphanumeric': 0.13434903047091412, 'fraction_numerical': 0.0, 'mean_word_length': 5.365638766519824, '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': '2428999', 'n_tokens_mistral': 533, 'n_tokens_neox': 501, 'n_words': 116}