<commit_before>
DESCRIPTION.perl5test = Crystal Space Perl v5 Scripting Test App

#-------------------------------------------------------------- rootdefines ---#
ifeq ($(MAKESECTION), rootdefines)

# Application
APPHELP += \
  $(NEWLINE)@echo $"  make perl5test    Make the $(DESCRIPTION.perl5test)$"

endif

#-------------------------------------------------------------- roottargets ---#
ifeq ($(MAKESECTION), roottargets)

.PHONY: perl5test perl5testclean

all apps: perl5test

clean: perl5testclean

perl5test: csperl5
	$(MAKE_TARGET)
perl5testclean:
	$(MAKE_CLEAN)

endif

#-------------------------------------------------------------- postdefines ---#
ifeq ($(MAKESECTION), postdefines)

vpath % apps/tests/perl5tst

PERL5TEST = perl5tst$(EXE)
LIB.PERL5TEST = $(foreach d,$(DEP.PERL5TEST),$($d.LIB))
TO_INSTALL.EXE += $(PERL5TEST)

SRC.PERL5TEST = $(wildcard apps/tests/perl5tst/*.cpp)
OBJ.PERL5TEST = $(addprefix $(OUT)/,$(notdir $(SRC.PERL5TEST:.cpp=$O)))
DEP.PERL5TEST = CSPERL5 CSTOOL CSUTIL CSSYS

MSVC.DSP += PERL5TEST
DSP.PERL5TEST.NAME = perl5tst
DSP.PERL5TEST.TYPE = appcon
DSP.PERL5TEST.DEPEND = CSPERL5 CSTOOL CSUTIL CSSYS

endif

#------------------------------------------------------------------ targets ---#
ifeq ($(MAKESECTION), targets)

.PHONY: perl5test perl5testclean

perl5test: $(PERL5TEST)

$(PERL5TEST): $(OBJ.PERL5TEST) $(LIB.PERL5TEST)
	$(DO.LINK.EXE)

$(OBJ.PERL5TEST): $(SRC.PERL5TEST)
	$(DO.COMPILE.CPP)

perl5testclean:
	-$(RMDIR) $(PERL5TEST) $(OBJ.PERL5TEST)

ifdef DO_DEPEND
dep: $(OUTOS)/perl5tst.dep
else
-include $(OUTOS)/perl5tst.dep
endif

endif
<commit_msg>Added test for csperl5 plugins existence in build to stop the test app being built if it is not.<commit_after>ifneq (,$(findstring csperl5,$(PLUGINS) $(PLUGINS.DYNAMIC)))

DESCRIPTION.perl5test = Crystal Space Perl v5 Scripting Test App

#-------------------------------------------------------------- rootdefines ---#
ifeq ($(MAKESECTION), rootdefines)

# Application
APPHELP += \
  $(NEWLINE)@echo $"  make perl5test    Make the $(DESCRIPTION.perl5test)$"

endif

#-------------------------------------------------------------- roottargets ---#
ifeq ($(MAKESECTION), roottargets)

.PHONY: perl5test perl5testclean

all apps: perl5test

clean: perl5testclean

perl5test: csperl5
	$(MAKE_TARGET)
perl5testclean:
	$(MAKE_CLEAN)

endif

#-------------------------------------------------------------- postdefines ---#
ifeq ($(MAKESECTION), postdefines)

vpath % apps/tests/perl5tst

PERL5TEST = perl5tst$(EXE)
LIB.PERL5TEST = $(foreach d,$(DEP.PERL5TEST),$($d.LIB))
TO_INSTALL.EXE += $(PERL5TEST)

SRC.PERL5TEST = $(wildcard apps/tests/perl5tst/*.cpp)
OBJ.PERL5TEST = $(addprefix $(OUT)/,$(notdir $(SRC.PERL5TEST:.cpp=$O)))
DEP.PERL5TEST = CSPERL5 CSTOOL CSUTIL CSSYS

MSVC.DSP += PERL5TEST
DSP.PERL5TEST.NAME = perl5tst
DSP.PERL5TEST.TYPE = appcon
DSP.PERL5TEST.DEPEND = CSPERL5 CSTOOL CSUTIL CSSYS

endif

#------------------------------------------------------------------ targets ---#
ifeq ($(MAKESECTION), targets)

.PHONY: perl5test perl5testclean

perl5test: $(PERL5TEST)

$(PERL5TEST): $(OBJ.PERL5TEST) $(LIB.PERL5TEST)
	$(DO.LINK.EXE)

$(OBJ.PERL5TEST): $(SRC.PERL5TEST)
	$(DO.COMPILE.CPP)

perl5testclean:
	-$(RMDIR) $(PERL5TEST) $(OBJ.PERL5TEST)

ifdef DO_DEPEND
dep: $(OUTOS)/perl5tst.dep
else
-include $(OUTOS)/perl5tst.dep
endif

endif

endif

{'fraction_non_alphanumeric': 0.28073831497469487, 'fraction_numerical': 0.026198273295623697, 'mean_word_length': 2.4674922600619196, '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': '7127454', 'n_tokens_mistral': 1295, 'n_tokens_neox': 1236, 'n_words': 234}