<commit_before>
# This makefile based on ideas from http://make.paulandlesley.org/
# Thanks to <NAME> <<EMAIL>>

ECHO=/bin/echo
CAT=/bin/cat

# make magic
SUB_MAKE:=$(filter _%,$(notdir $(CURDIR)))
OBJDIR:=$(shell $(ECHO) $(filter _%,$(MAKECMDGOALS)) | tr ' ' '\n' | cut -d/ -f1 | sort | uniq)
ifeq (,$(SUB_MAKE))
  ifneq (,$(OBJDIR))
    .SUFFIXES:
    MAKEFLAGS += -rR --no-print-directory VPATH=$(CURDIR)
    FILTERED_MAKECMDGOALS=$(subst $@/,,$(filter $@/%,$(MAKECMDGOALS)))
    module=$(subst tarantool_,,$(FILTERED_MAKECMDGOALS))
    .PHONY: $(OBJDIR)
    $(OBJDIR):
	+@mkdir -p $@
	+@$(MAKE) -C $@ -f $(CURDIR)/Makefile SRCDIR=$(CURDIR) OBJDIR=$@ module=$(module) $(FILTERED_MAKECMDGOALS)

    Makefile: ;
    %.mk :: ;
    % :: $(OBJDIR) ; @:
  else
    SRCDIR:=$(CURDIR)
    include $(SRCDIR)/scripts/rules.mk
  endif
else
  include $(SRCDIR)/scripts/rules.mk
endif

ifeq ("$(origin module)", "command line")
.PHONY: clean
clean:
	@echo "	CLEAN $(module)"
	@rm -rf $(obj) $(dep) tarantool_$(module) _* lcov test
else
.PHONY: clean
clean:
	@for mod in mod/*; do $(MAKE) --no-print-directory module=`basename $$mod` clean; done
endif
.PHONY: TAGS
TAGS:
	ctags -R -e -f TAGS


ifeq ("$(origin V)", "command line")
  VERBOSE = $(V)
endif
ifeq (,$(VERBOSE))
  $(eval override CC = @$(ECHO)    "	CC	" $$@; $(CC))
  $(eval override RAGEL = @$(ECHO) "	RGL	" $$@; $(RAGEL))
  $(eval override DOT = @$(ECHO) "	DOT	" $$@; $(DOT))
  $(eval override CONFETTI = @$(ECHO) "	CNF	" $$@; $(CONFETTI))
  $(eval override CAT = @$(ECHO) "	CAT	" $$@; $(CAT))
endif<commit_msg>Do not delete 'test' directory in make clean.<commit_after>
# This makefile based on ideas from http://make.paulandlesley.org/
# Thanks to <NAME> <<EMAIL>>

ECHO=/bin/echo
CAT=/bin/cat

# make magic
SUB_MAKE:=$(filter _%,$(notdir $(CURDIR)))
OBJDIR:=$(shell $(ECHO) $(filter _%,$(MAKECMDGOALS)) | tr ' ' '\n' | cut -d/ -f1 | sort | uniq)
ifeq (,$(SUB_MAKE))
  ifneq (,$(OBJDIR))
    .SUFFIXES:
    MAKEFLAGS += -rR --no-print-directory VPATH=$(CURDIR)
    FILTERED_MAKECMDGOALS=$(subst $@/,,$(filter $@/%,$(MAKECMDGOALS)))
    module=$(subst tarantool_,,$(FILTERED_MAKECMDGOALS))
    .PHONY: $(OBJDIR)
    $(OBJDIR):
	+@mkdir -p $@
	+@$(MAKE) -C $@ -f $(CURDIR)/Makefile SRCDIR=$(CURDIR) OBJDIR=$@ module=$(module) $(FILTERED_MAKECMDGOALS)

    Makefile: ;
    %.mk :: ;
    % :: $(OBJDIR) ; @:
  else
    SRCDIR:=$(CURDIR)
    include $(SRCDIR)/scripts/rules.mk
  endif
else
  include $(SRCDIR)/scripts/rules.mk
endif

ifeq ("$(origin module)", "command line")
.PHONY: clean
clean:
	@echo "	CLEAN $(module)"
	@rm -rf $(obj) $(dep) tarantool_$(module) _* lcov
else
.PHONY: clean
clean:
	@for mod in mod/*; do $(MAKE) --no-print-directory module=`basename $$mod` clean; done
endif
.PHONY: TAGS
TAGS:
	ctags -R -e -f TAGS


ifeq ("$(origin V)", "command line")
  VERBOSE = $(V)
endif
ifeq (,$(VERBOSE))
  $(eval override CC = @$(ECHO)    "	CC	" $$@; $(CC))
  $(eval override RAGEL = @$(ECHO) "	RGL	" $$@; $(RAGEL))
  $(eval override DOT = @$(ECHO) "	DOT	" $$@; $(DOT))
  $(eval override CONFETTI = @$(ECHO) "	CNF	" $$@; $(CONFETTI))
  $(eval override CAT = @$(ECHO) "	CAT	" $$@; $(CAT))
endif
{'fraction_non_alphanumeric': 0.2261338407865525, 'fraction_numerical': 0.0006343165239454488, 'mean_word_length': 3.912772585669782, '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': '5019558', 'n_tokens_mistral': 1369, 'n_tokens_neox': 1294, 'n_words': 309}