<commit_before>.PHONY: all

.PHONY= build
include luggage.make

#openMHA project directory
REPO=../../../..

#Include meta-information in the package
PACKAGE_VERSION=4.11.0
TITLE=openMHA
REVERSE_DOMAIN=org.openmha

all: pkg
pkg: build

#Targets to execute before packing
PAYLOAD= \
        usr-local-bin \
        usr-local-lib \
				mfiles \
        matfiles \
        examples \
				docfiles \
				bundle-uninstall-openMHA


#Basename of the resulting package. Set PACKAGE-VERSION on the command line
UTIL=openMHA-installer

build:
	@./find_and_copy_dependencies.sh

usr-local-bin: l_usr_local_bin
	@${CP} ./bin/* ${WORK_D}/usr/local/bin/

usr-local-lib: l_usr_local_lib
	@${CP} -r ./lib/* ${WORK_D}/usr/local/lib/

examples: l_usr_local_share
	@mkdir -p ${WORK_D}/usr/local/share/openmha/examples
	@${CP} -r ${REPO}/examples/* ${WORK_D}/usr/local/share/openmha/examples/.

mfiles: l_usr_local_lib
	@mkdir -p ${WORK_D}/usr/local/lib/openmha/mfiles
	@${CP} ${REPO}/mha/tools/mfiles/*m ${WORK_D}/usr/local/lib/openmha/mfiles
	@${CP} ${REPO}/mha/tools/mfiles/mhactl_java.jar ${WORK_D}/usr/local/lib/openmha/mfiles

matfiles: l_usr_local_share
	@mkdir -p ${WORK_D}/usr/local/share/openmha
	@${CP} ${REPO}/mha/tools/mfiles/*.mat ${WORK_D}/usr/local/share/openmha/
	@${CP} ${REPO}/mha/tools/mfiles/*.cfg ${WORK_D}/usr/local/share/openmha/

docfiles:
	@mkdir -p ${WORK_D}/usr/local/doc/openmha/
	@${CP} ${REPO}/COPYING ${WORK_D}/usr/local/doc/openmha/
	@${CP} ${REPO}/*.pdf ${WORK_D}/usr/local/doc/openmha/

clean:
	@rm -rf tmp/
	@rm -rf bin/
	@rm -rf lib/
	@rm -rf doc/
	@rm -rf mfiles/
	@rm -rf *.pkg
	@rm -rf *.dmg
<commit_msg>pkg: Add explicit dependencies of pkg target<commit_after>.PHONY: all

.PHONY= build
include luggage.make

#openMHA project directory
REPO=../../../..

#Include meta-information in the package
PACKAGE_VERSION=4.11.0
TITLE=openMHA
REVERSE_DOMAIN=org.openmha

all: pkg
# pkg is a target within luggage.make and depends on payload.
# payload is the target where luggage does the final file arrangement before
# packaging the installer. Our build target copies all exes and libs into a
# tmp directory and fixes the library install names and search paths, so we
# it needs to be run before that.
payload: build

#Targets to execute before packing
PAYLOAD= \
        usr-local-bin \
        usr-local-lib \
				mfiles \
        matfiles \
        examples \
				docfiles \
				bundle-uninstall-openMHA


#Basename of the resulting package. Set PACKAGE-VERSION on the command line
UTIL=openMHA-installer

build:
	@./find_and_copy_dependencies.sh

usr-local-bin: l_usr_local_bin
	@${CP} ./bin/* ${WORK_D}/usr/local/bin/

usr-local-lib: l_usr_local_lib
	@${CP} -r ./lib/* ${WORK_D}/usr/local/lib/

examples: l_usr_local_share
	@mkdir -p ${WORK_D}/usr/local/share/openmha/examples
	@${CP} -r ${REPO}/examples/* ${WORK_D}/usr/local/share/openmha/examples/.

mfiles: l_usr_local_lib
	@mkdir -p ${WORK_D}/usr/local/lib/openmha/mfiles
	@${CP} ${REPO}/mha/tools/mfiles/*m ${WORK_D}/usr/local/lib/openmha/mfiles
	@${CP} ${REPO}/mha/tools/mfiles/mhactl_java.jar ${WORK_D}/usr/local/lib/openmha/mfiles

matfiles: l_usr_local_share
	@mkdir -p ${WORK_D}/usr/local/share/openmha
	@${CP} ${REPO}/mha/tools/mfiles/*.mat ${WORK_D}/usr/local/share/openmha/
	@${CP} ${REPO}/mha/tools/mfiles/*.cfg ${WORK_D}/usr/local/share/openmha/

docfiles:
	@mkdir -p ${WORK_D}/usr/local/doc/openmha/
	@${CP} ${REPO}/COPYING ${WORK_D}/usr/local/doc/openmha/
	@${CP} ${REPO}/*.pdf ${WORK_D}/usr/local/doc/openmha/

clean:
	@rm -rf tmp/
	@rm -rf bin/
	@rm -rf lib/
	@rm -rf doc/
	@rm -rf mfiles/
	@rm -rf *.pkg
	@rm -rf *.dmg

{'fraction_non_alphanumeric': 0.16759002770083103, 'fraction_numerical': 0.00221606648199446, 'mean_word_length': 3.5081148564294633, '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': '2864829', 'n_tokens_mistral': 1531, 'n_tokens_neox': 1466, 'n_words': 307}