<commit_before>#
#   Date: Jan 25, 2012
# Author: <NAME>
#

CACHE_DIR := mk/.cache

# Core scripts: def & obj.
mk_core := $(CACHE_DIR)/mk_core.mk
$(mk_core) : CACHE_INCLUDES := \
	mk/core/string.mk \
	mk/core/define.mk \
	mk/core/object.mk

# GOLD parser engine.
mk_gold := $(CACHE_DIR)/mk_gold.mk
$(mk_gold) : CACHE_INCLUDES := \
	mk/gold/engine.mk
$(mk_gold) : CACHE_REQUIRES := \
	$(mk_core)

ifeq (0,1) ###
# Tiny version of EMF Ecore.
mk_model := $(CACHE_DIR)/mk_model.mk
$(mk_model) : CACHE_INCLUDES := \
	mk/model/model.mk     \
	mk/model/factory.mk   \
	mk/model/metamodel.mk
$(mk_model) : CACHE_REQUIRES := \
	$(mk_core)

# Mybuild itself.
mk_mybuild := $(CACHE_DIR)/mk_mybuild.mk
$(mk_mybuild) : CACHE_INCLUDES := \
	mk/mybuild/myfile-model.mk     \
	mk/mybuild/myfile-factory.mk   \
	mk/mybuild/myfile-metamodel.mk \
	mk/mybuild/myfile-resource.mk  \
	mk/mybuild/myfile-parser.mk
$(mk_mybuild) : CACHE_REQUIRES := \
	$(mk_core) \
	$(mk_gold) \
	$(mk_model)

all_mk_scripts := \
	$(mk_core) \
	$(mk_gold) \
	$(mk_model) \
	$(mk_mybuild)

else ###

mk_mybuild := $(CACHE_DIR)/mk_mybuild.mk
$(mk_mybuild) : CACHE_INCLUDES := \
	mk/mybuild/model.mk     \
	mk/mybuild/myfile.mk     \
	mk/mybuild/resource.mk
$(mk_mybuild) : CACHE_REQUIRES := \
	$(mk_core) \
	$(mk_gold)

all_mk_scripts := \
	$(mk_core) \
	$(mk_gold) \
	$(mk_mybuild)

endif ###

# Defaults.
export CACHE_INCLUDES :=
export CACHE_REQUIRES :=

$(MAKECMDGOALS) : $(all_mk_scripts)
	@$(MAKE) -f mk/main.mk MAKEFILES=$(mk_mybuild) $@

-include $(all_mk_scripts:%=%.d)

.SECONDEXPANSION:
$(all_mk_scripts) : $$(CACHE_INCLUDES)
$(all_mk_scripts) : $$(CACHE_REQUIRES)
$(all_mk_scripts) : mk/load.mk
$(all_mk_scripts) : mk/cache.mk
$(all_mk_scripts) :
	@echo Preparing $(@F)...
	@mkdir -p $(@D) && $(MAKE) -f mk/cache.mk CACHE_DEP_TARGET='$@' > $@<commit_msg>Split mk_core scripts into def & obj<commit_after>#
#   Date: Jan 25, 2012
# Author: <NAME>
#

CACHE_DIR := mk/.cache

# Core scripts: def & obj.
export mk_core_def := $(CACHE_DIR)/mk_core_def.mk
$(mk_core_def) : CACHE_INCLUDES := \
	mk/core/define.mk

export mk_core_obj := $(CACHE_DIR)/mk_core_obj.mk
$(mk_core_obj) : CACHE_INCLUDES := \
	mk/core/object.mk
$(mk_core_obj) : CACHE_REQUIRES := \
	$(mk_core_def)

# GOLD parser engine.
export mk_gold_engine := $(CACHE_DIR)/mk_gold_engine.mk
$(mk_gold_engine) : CACHE_INCLUDES := \
	mk/gold/engine.mk
$(mk_gold_engine) : CACHE_REQUIRES := \
	$(mk_core_def)

ifeq (0,1) ###
# Tiny version of EMF Ecore.
export mk_model := $(CACHE_DIR)/mk_model.mk
$(mk_model) : CACHE_INCLUDES := \
	mk/model/model.mk     \
	mk/model/factory.mk   \
	mk/model/metamodel.mk
$(mk_model) : CACHE_REQUIRES := \
	$(mk_core_def)

# Mybuild itself.
export mk_mybuild := $(CACHE_DIR)/mk_mybuild.mk
$(mk_mybuild) : CACHE_INCLUDES := \
	mk/mybuild/myfile-model.mk     \
	mk/mybuild/myfile-factory.mk   \
	mk/mybuild/myfile-metamodel.mk \
	mk/mybuild/myfile-resource.mk  \
	mk/mybuild/myfile-parser.mk
$(mk_mybuild) : CACHE_REQUIRES := \
	$(mk_core_def) \
	$(mk_gold_engine) \
	$(mk_model)

all_mk_scripts := \
	$(mk_core_def) \
	$(mk_core_obj) \
	$(mk_gold_engine) \
	$(mk_model) \
	$(mk_mybuild)

else ###

export mk_mybuild := $(CACHE_DIR)/mk_mybuild.mk
$(mk_mybuild) : CACHE_INCLUDES := \
	mk/mybuild/model.mk     \
	mk/mybuild/myfile.mk     \
	mk/mybuild/resource.mk
$(mk_mybuild) : CACHE_REQUIRES := \
	$(mk_core_obj) \
	$(mk_gold_engine)

all_mk_scripts := \
	$(mk_core_def) \
	$(mk_core_obj) \
	$(mk_gold_engine) \
	$(mk_mybuild)

endif ###

# Defaults.
export CACHE_INCLUDES :=
export CACHE_REQUIRES :=

$(MAKECMDGOALS) : $(all_mk_scripts)
	@$(MAKE) -f mk/main.mk MAKEFILES=$(mk_mybuild) $@

-include $(all_mk_scripts:%=%.d)

.SECONDEXPANSION:
$(all_mk_scripts) : $$(CACHE_INCLUDES)
$(all_mk_scripts) : $$(CACHE_REQUIRES)
$(all_mk_scripts) : mk/load.mk
$(all_mk_scripts) : mk/cache.mk
$(all_mk_scripts) :
	@echo Preparing $(@F)...
	@mkdir -p $(@D) && $(MAKE) -f mk/cache.mk CACHE_DEP_TARGET='$@' > $@
{'fraction_non_alphanumeric': 0.1848101265822785, 'fraction_numerical': 0.004050632911392405, 'mean_word_length': 4.00126582278481, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4683255', 'n_tokens_mistral': 1795, 'n_tokens_neox': 1769, 'n_words': 257}