<commit_before>#
# $Id: Makefile,v 1.31 2007/06/26 14:36:40 tho Exp $
#
# User Variables:
# - MAKLRC          file name for hosting MaKL env variables
# - LOGIN_SHELL     user shell
# - MAKL_SHLIB      shared library file
# - MAKL_TC         toolchain file
# - MAKL_PLATFORM   forces MAKL_SHLIB and MAKL_TC
#
# Available targets:
#   all help hints toolchain env install uninstall clean

# this one needs to be exported in the 'toolchain' target
export MAKL_DIR := $(shell pwd)
export MAKL_ETC ?= $(MAKL_DIR)/etc

# these are available after 'toolchain' actions
-include etc/toolchain.mk
-include etc/map.mk

# this will be available after the 'configure' stage
-include Makefile.conf

MAKL_VERSION = $(shell cat $(MAKL_DIR)/VERSION)

# set sensible defaults if not already set by the user
LOGIN_SHELL ?= sh
MAKLRC ?= $(MAKL_DIR)/makl.env

# catchall and 'help' targets display a menu of available options
all help:
	@echo
	@echo "# MaKL version $(MAKL_VERSION) - (c) 2005-2007 - KoanLogic srl"
	@echo "Available targets:"
	@echo
	@echo "   * help        print this menu"
	@echo "   * hints       output environment variables"
	@echo "   * toolchain   install platform toolchain files"
	@echo "   * rc          generate a file containing runtime MaKL variables"
	@echo "   * env         same as 'rc' but interactively"
	@echo "   * clean       remove autogenerated toolchain files"
	@echo "   * install     install a system wide MaKL (needs configure step)"
	@echo "   * uninstall   delete MaKL installed objects from host"
	@echo

$(MAKL_ETC):
	@helpers/mkinstalldirs $(MAKL_ETC)

# 'toolchain' target does shared libs and toolchain installation for the 
# host platform
toolchain: $(MAKL_ETC)
	@[ ! -z $(MAKL_PLATFORM) ] && \
        tc_env="MAKL_TC=${MAKL_PLATFORM} MAKL_SHLIB=${MAKL_PLATFORM}" ; \
	env $$tc_env setup/tc_setup.sh
<commit_msg>[makl] MAKL_TC and MAKL_SHLIB don't get overwritten by MAKL_PLATFORM anymore<commit_after>#
# $Id: Makefile,v 1.32 2007/07/19 13:36:18 tat Exp $
#
# User Variables:
# - MAKLRC          file name for hosting MaKL env variables
# - LOGIN_SHELL     user shell
# - MAKL_SHLIB      shared library file
# - MAKL_TC         toolchain file
# - MAKL_PLATFORM   forces MAKL_SHLIB and MAKL_TC
#
# Available targets:
#   all help hints toolchain env install uninstall clean

# this one needs to be exported in the 'toolchain' target
export MAKL_DIR := $(shell pwd)
export MAKL_ETC ?= $(MAKL_DIR)/etc

# these are available after 'toolchain' actions
-include etc/toolchain.mk
-include etc/map.mk

# this will be available after the 'configure' stage
-include Makefile.conf

MAKL_VERSION = $(shell cat $(MAKL_DIR)/VERSION)

# set sensible defaults if not already set by the user
LOGIN_SHELL ?= sh
MAKLRC ?= $(MAKL_DIR)/makl.env

# catchall and 'help' targets display a menu of available options
all help:
	@echo
	@echo "# MaKL version $(MAKL_VERSION) - (c) 2005-2007 - KoanLogic srl"
	@echo "Available targets:"
	@echo
	@echo "   * help        print this menu"
	@echo "   * hints       output environment variables"
	@echo "   * toolchain   install platform toolchain files"
	@echo "   * rc          generate a file containing runtime MaKL variables"
	@echo "   * env         same as 'rc' but interactively"
	@echo "   * clean       remove autogenerated toolchain files"
	@echo "   * install     install a system wide MaKL (needs configure step)"
	@echo "   * uninstall   delete MaKL installed objects from host"
	@echo

$(MAKL_ETC):
	@helpers/mkinstalldirs $(MAKL_ETC)

MAKL_TC ?= $(MAKL_PLATFORM)
MAKL_SHLIB ?= $(MAKL_PLATFORM)

# 'toolchain' target does shared libs and toolchain installation for the 
# host platform
toolchain: $(MAKL_ETC)
ifdef MAKL_PLATFORM
	env MAKL_TC=$(MAKL_TC) MAKL_SHLIB=$(MAKL_SHLIB) setup/tc_setup.sh
else
	setup/tc_setup.sh                                         
endif     

{'fraction_non_alphanumeric': 0.09351393592081271, 'fraction_numerical': 0.013024225058609012, 'mean_word_length': 3.4087256027554536, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3444586', 'n_tokens_mistral': 1386, 'n_tokens_neox': 1275, 'n_words': 423}