<commit_before>filenames = \
	assortativity_dir_cpp \
	assortativity_und_cpp \
	clustering_coef_bd_cpp \
	clustering_coef_bu_cpp \
	clustering_coef_wd_cpp \
	clustering_coef_wu_cpp \
	degrees_dir_cpp \
	degrees_und_cpp \
	density_dir_cpp \
	density_und_cpp \
	jdegree_cpp \
	jdegree_id_cpp \
	jdegree_od_cpp \
	jdegree_bl_cpp \
	matching_ind_cpp \
	strengths_und_cpp \
	strengths_dir_cpp \

objects := $(foreach f, $(filenames), $(f).o)
oct_files := $(foreach f, $(filenames), $(f).oct)
m_files = \
	bct_test.m \
	bct_test_all.m

.PHONY: all clean install uninstall

all: $(oct_files)

.SECONDEXPANSION:

$(oct_files): ../libbct.a bct_test.h bct_test.cpp $$(basename $$@).cpp
	mkoctfile -lbct -lgsl -lgslcblas $(basename $@).cpp

install: $(oct_files)
	if [ ! -d /usr/local/share/bct ]; then \
		mkdir /usr/local/share/bct; \
	fi
	cp $(oct_files) $(m_files) /usr/local/share/bct<commit_msg>Only remake oct-files if corresponding source is updated.<commit_after>filenames = \
	assortativity_dir_cpp \
	assortativity_und_cpp \
	clustering_coef_bd_cpp \
	clustering_coef_bu_cpp \
	clustering_coef_wd_cpp \
	clustering_coef_wu_cpp \
	degrees_dir_cpp \
	degrees_und_cpp \
	density_dir_cpp \
	density_und_cpp \
	jdegree_cpp \
	jdegree_id_cpp \
	jdegree_od_cpp \
	jdegree_bl_cpp \
	matching_ind_cpp \
	strengths_und_cpp \
	strengths_dir_cpp \

objects := $(foreach f, $(filenames), $(f).o)
oct_files := $(foreach f, $(filenames), $(f).oct)
m_files = \
	bct_test.m \
	bct_test_all.m

.PHONY: all clean install uninstall

all: $(oct_files)

.SECONDEXPANSION:

$(oct_files): ../libbct.a bct_test.h bct_test.cpp $$(basename $$@).cpp
	@if [ $(subst _cpp,,../$(basename $@).cpp) -nt $@ ]; then \
		echo Making $@...; \
		mkoctfile -lbct -lgsl -lgslcblas $(basename $@).cpp; else \
		echo "make: \`$@' is up to date."; \
		touch $@; \
	fi

install: $(oct_files)
	if [ ! -d /usr/local/share/bct ]; then \
		mkdir /usr/local/share/bct; \
	fi
	cp $(oct_files) $(m_files) /usr/local/share/bct
{'fraction_non_alphanumeric': 0.1458966565349544, 'fraction_numerical': 0.0, 'mean_word_length': 3.7936893203883497, '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': '5849337', 'n_tokens_mistral': 889, 'n_tokens_neox': 857, 'n_words': 151}