<commit_before># Copyright (C) 2015 <NAME> <<EMAIL>>
#
# All rights reserved.
# Please read README for details.
#

# programs and directories

TOOL_DIR?=	/usr/tools
GMAKE?=		${TOOL_DIR}/bin/nbgmake
SH?=		/bin/sh

UTILS_DIR?=	src/utils

#
# specify default image
#
ARCH?=			i386
MODEL?=         rescue
KERNEL_CONF?=	FDGW
BIOSBOOT?=		bootxx_ffsv1

MAKE_PARAMS = 	MODEL=${MODEL} \
		KERNEL_CONF=${KERNEL_CONF} \
		BIOSBOOT=${BIOSBOOT} \
		OPSYS=NetBSD \
		SH=${SH}	\
		UTILS_DIR=${UTILS_DIR:S|^src/||} \
		TOOL_DIR=${TOOL_DIR}

all:
	@ echo "make build   (need NOT priviledge)"
	@ echo "make image   (need root priviledge)"

build:
	${SH} ./${UTILS_DIR}/prepare_workdir.sh ${ARCH}.${MODEL}
	(cd obj.${ARCH}.${MODEL};${MAKE} ${MAKE_PARAMS} build )

image:
	@ echo ""	
	@ echo "\"make image\" needs root privilege"
	@ echo ""	
	(cd obj.${ARCH}.${MODEL}; ${MAKE} ${MAKE_PARAMS} image )

clean:
	rm -fr obj.${ARCH}.${MODEL}
	rm -fr src/NetBSD
	rm -fr image.${ARCH}
	rm -fr src/etc/*
<commit_msg>tools<commit_after># Copyright (C) 2015 <NAME> <<EMAIL>>
#
# All rights reserved.
# Please read README for details.
#

# programs and directories

TOOL_DIR?=	/usr/tools
OBJ_DIR?=	/usr/obj
BSDSRCDIR= /usr/src
GMAKE?=		${TOOL_DIR}/bin/nbgmake
SH?=		/bin/sh

UTILS_DIR?=	src/utils

#
# specify default image
#
ARCH?=			i386
MODEL?=         rescue
KERNEL_CONF?=	FDGW
BIOSBOOT?=		bootxx_ffsv1

MAKE_PARAMS = 	MODEL=${MODEL} \
		KERNEL_CONF=${KERNEL_CONF} \
		BIOSBOOT=${BIOSBOOT} \
		OPSYS=NetBSD \
		SH=${SH}	\
		UTILS_DIR=${UTILS_DIR:S|^src/||} \
		TOOL_DIR=${TOOL_DIR} \
		OBJ_DIR=${OBJ_DIR} \
		BSDSRCDIR=${BSDSRCDIR}

all:
	@ echo "make build   (need NOT priviledge)"
	@ echo "make image   (need root priviledge)"

build:
	${SH} ./${UTILS_DIR}/prepare_workdir.sh ${ARCH}.${MODEL}
	(cd obj.${ARCH}.${MODEL};${MAKE} ${MAKE_PARAMS} build )

image:
	@ echo ""	
	@ echo "\"make image\" needs root privilege"
	@ echo ""	
	(cd obj.${ARCH}.${MODEL}; ${MAKE} ${MAKE_PARAMS} image )

tools:
	cd ${BSDSRCDIR}
	sh build.sh -U -u -O ${OBJ_DIR} -T ${TOOL_DIR} tools

distribution:
	cd ${BSDSRCDIR}
	sh build.sh -U -u -O ${OBJ_DIR} -T ${TOOL_DIR} distribution

clean:
	rm -fr obj.${ARCH}.${MODEL}
	rm -fr src/NetBSD
	rm -fr image.${ARCH}
	rm -fr src/etc/*

{'fraction_non_alphanumeric': 0.18618214445939885, 'fraction_numerical': 0.007178106774338268, 'mean_word_length': 3.7346072186836516, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6896582', 'n_tokens_mistral': 1030, 'n_tokens_neox': 967, 'n_words': 214}