<commit_before>#------------------------------------------------------------------------------
# Alternate Window Manager plugin submakefile
#------------------------------------------------------------------------------
DESCRIPTION.aws = Alternate Windowing System plug-in
DESCRIPTION.awsgen = Flex and Bison generated files (forcibly)
DESCRIPTION.awsinst = Flex and Bison generated files

ifneq (,$(FLEXBIN))
ifneq (,$(BISONBIN))
AWS.CAN_GEN = yes
endif
endif

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

PLUGINHELP += \
  $(NEWLINE)echo $"  make aws          Make the $(DESCRIPTION.aws)$"

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

.PHONY: aws awsclean awsgen awsinst awsgenclean
all plugins: aws

aws:
	$(MAKE_TARGET) MAKE_DLL=yes
awsclean:
	$(MAKE_CLEAN)
ifeq ($(AWS.CAN_GEN),yes)
awsgen:
	$(MAKE_TARGET)
awsinst:
	$(MAKE_TARGET)
endif
awsgenclean:
	$(MAKE_CLEAN)

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

ifeq ($(USE_PLUGINS),yes)
  AWS = $(OUTDLL)/aws$(DLL)
  LIB.AWS = $(foreach d,$(DEP.AWS),$($d.LIB))
  TO_INSTALL.DYNAMIC_LIBS += $(AWS)
else
  AWS = $(OUT)/$(LIB_PREFIX)aws$(LIB)
  DEP.EXE += $(AWS)
  SCF.STATIC += aws
  TO_INSTALL.STATIC_LIBS += $(AWS)
endif

FLEX.SED = $(OUTDERIVED)/flex.sed
AWS.DERIVED.DIR = $(OUTDERIVED)/aws

DIR.AWS = plugins/aws
OUT.AWS = $(OUT)/$(DIR.AWS)
INF.AWS = $(SRCDIR)/$(DIR.AWS)/aws.csplugin
ifeq ($(DO_MSVCGEN),yes)
INC.AWS = $(wildcard $(addprefix $(SRCDIR)/,
  $(DIR.AWS)/*.h $(DIR.AWS)/*.hpp include/iaws/*.h))
SRC.AWS = $(wildcard $(addprefix $(SRCDIR)/,$(DIR.AWS)/*.cpp))
else
INC.AWS = $(AWS.DERIVED.DIR)/skinpars.hpp \
  $(filter-out $(SRCDIR)/$(DIR.AWS)/skinpars.hpp,$(wildcard $(addprefix \
  $(SRCDIR)/,$(DIR.AWS)/*.h $(DIR.AWS)/*.hpp include/iaws/*.h)))
SRC.AWS = $(AWS.DERIVED.DIR)/skinlex.cpp $(AWS.DERIVED.DIR)/skinpars.cpp \
  $(filter-out $(addprefix $(SRCDIR)/$(DIR.AWS)/,skinlex.cpp skinpars.cpp), \
  $(wildcard $(SRCDIR)/$(DIR.AWS)/*.cpp))
endif
OBJ.AWS = $(addprefix $(OUT.AWS)/,$(notdir $(SRC.AWS:.cpp=$O)))
DEP.AWS = CSTOOL CSGFX CSGEOM CSUTIL

OUTDIRS += $(OUT.AWS) $(AWS.DERIVED.DIR)

TO_INSTALL.DATA += $(SRCDIR)/data/awsdef.zip

MSVC.DSP += AWS
DSP.AWS.NAME = aws
DSP.AWS.TYPE = plugin
DSP.AWS.CFLAGS = /D "YY_NEVER_INTERACTIVE"

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

.PHONY: aws awsclean awscleandep awsgen awsinst awsgenclean
aws: $(OUTDIRS) $(AWS)

# Auto-generated files (skinlex.cpp and skinpars.cpp) are compiled from within
# $(OUTDERIVED), so we need to use -I to let them know where the AWS headers
# are.  Also silence compiler warnings via -Wno-unused in auto-generated code,
# over which we have no control.  @@@ FIXME: Configure script should check if
# compiler recognizes -Wno-unused, rather than blatently assuming that it does.
$(OUT.AWS)/skinpars$O: $(AWS.DERIVED.DIR)/skinpars.cpp
	$(DO.COMPILE.CPP) -Wno-unused $(CFLAGS.I)$(SRCDIR)/$(DIR.AWS)
$(OUT.AWS)/skinlex$O: $(AWS.DERIVED.DIR)/skinlex.cpp
	$(DO.COMPILE.CPP) -Wno-unused $(CFLAGS.I)$(SRCDIR)/$(DIR.AWS)

$(AWS): $(OBJ.AWS) $(LIB.AWS)
	$(DO.PLUGIN)

ifneq ($(AWS.CAN_GEN),yes)
$(AWS.DERIVED.DIR)/skinlex.cpp: $(SRCDIR)/$(DIR.AWS)/skinlex.cpp
	-$(RM) $@
	$(CP) $(SRCDIR)/$(DIR.AWS)/skinlex.cpp $@
$(AWS.DERIVED.DIR)/skinpars.cpp: $(SRCDIR)/$(DIR.AWS)/skinpars.cpp
	-$(RM) $@
	$(CP) $(SRCDIR)/$(DIR.AWS)/skinpars.cpp $@
$(AWS.DERIVED.DIR)/skinpars.hpp: $(SRCDIR)/$(DIR.AWS)/skinpars.hpp
	-$(RM) $@
	$(CP) $(SRCDIR)/$(DIR.AWS)/skinpars.hpp $@
else<commit_msg>Fixed bug: Forgot the implicit rule for sources in plugins/aws.<commit_after>#------------------------------------------------------------------------------
# Alternate Window Manager plugin submakefile
#------------------------------------------------------------------------------
DESCRIPTION.aws = Alternate Windowing System plug-in
DESCRIPTION.awsgen = Flex and Bison generated files (forcibly)
DESCRIPTION.awsinst = Flex and Bison generated files

ifneq (,$(FLEXBIN))
ifneq (,$(BISONBIN))
AWS.CAN_GEN = yes
endif
endif

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

PLUGINHELP += \
  $(NEWLINE)echo $"  make aws          Make the $(DESCRIPTION.aws)$"

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

.PHONY: aws awsclean awsgen awsinst awsgenclean
all plugins: aws

aws:
	$(MAKE_TARGET) MAKE_DLL=yes
awsclean:
	$(MAKE_CLEAN)
ifeq ($(AWS.CAN_GEN),yes)
awsgen:
	$(MAKE_TARGET)
awsinst:
	$(MAKE_TARGET)
endif
awsgenclean:
	$(MAKE_CLEAN)

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

ifeq ($(USE_PLUGINS),yes)
  AWS = $(OUTDLL)/aws$(DLL)
  LIB.AWS = $(foreach d,$(DEP.AWS),$($d.LIB))
  TO_INSTALL.DYNAMIC_LIBS += $(AWS)
else
  AWS = $(OUT)/$(LIB_PREFIX)aws$(LIB)
  DEP.EXE += $(AWS)
  SCF.STATIC += aws
  TO_INSTALL.STATIC_LIBS += $(AWS)
endif

FLEX.SED = $(OUTDERIVED)/flex.sed
AWS.DERIVED.DIR = $(OUTDERIVED)/aws

DIR.AWS = plugins/aws
OUT.AWS = $(OUT)/$(DIR.AWS)
INF.AWS = $(SRCDIR)/$(DIR.AWS)/aws.csplugin
ifeq ($(DO_MSVCGEN),yes)
INC.AWS = $(wildcard $(addprefix $(SRCDIR)/,
  $(DIR.AWS)/*.h $(DIR.AWS)/*.hpp include/iaws/*.h))
SRC.AWS = $(wildcard $(addprefix $(SRCDIR)/,$(DIR.AWS)/*.cpp))
else
INC.AWS = $(AWS.DERIVED.DIR)/skinpars.hpp \
  $(filter-out $(SRCDIR)/$(DIR.AWS)/skinpars.hpp,$(wildcard $(addprefix \
  $(SRCDIR)/,$(DIR.AWS)/*.h $(DIR.AWS)/*.hpp include/iaws/*.h)))
SRC.AWS = $(AWS.DERIVED.DIR)/skinlex.cpp $(AWS.DERIVED.DIR)/skinpars.cpp \
  $(filter-out $(addprefix $(SRCDIR)/$(DIR.AWS)/,skinlex.cpp skinpars.cpp), \
  $(wildcard $(SRCDIR)/$(DIR.AWS)/*.cpp))
endif
OBJ.AWS = $(addprefix $(OUT.AWS)/,$(notdir $(SRC.AWS:.cpp=$O)))
DEP.AWS = CSTOOL CSGFX CSGEOM CSUTIL

OUTDIRS += $(OUT.AWS) $(AWS.DERIVED.DIR)

TO_INSTALL.DATA += $(SRCDIR)/data/awsdef.zip

MSVC.DSP += AWS
DSP.AWS.NAME = aws
DSP.AWS.TYPE = plugin
DSP.AWS.CFLAGS = /D "YY_NEVER_INTERACTIVE"

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

.PHONY: aws awsclean awscleandep awsgen awsinst awsgenclean
aws: $(OUTDIRS) $(AWS)

# Auto-generated files (skinlex.cpp and skinpars.cpp) are compiled from within
# $(OUTDERIVED), so we need to use -I to let them know where the AWS headers
# are.  Also silence compiler warnings via -Wno-unused in auto-generated code,
# over which we have no control.  @@@ FIXME: Configure script should check if
# compiler recognizes -Wno-unused, rather than blatently assuming that it does.
$(OUT.AWS)/skinpars$O: $(AWS.DERIVED.DIR)/skinpars.cpp
	$(DO.COMPILE.CPP) -Wno-unused $(CFLAGS.I)$(SRCDIR)/$(DIR.AWS)
$(OUT.AWS)/skinlex$O: $(AWS.DERIVED.DIR)/skinlex.cpp
	$(DO.COMPILE.CPP) -Wno-unused $(CFLAGS.I)$(SRCDIR)/$(DIR.AWS)

$(OUT.AWS)/%$O: $(SRCDIR)/$(DIR.AWS)/%.cpp
	$(DO.COMPILE.CPP)

$(AWS): $(OBJ.AWS) $(LIB.AWS)
	$(DO.PLUGIN)

ifneq ($(AWS.CAN_GEN),yes)
$(AWS.DERIVED.DIR)/skinlex.cpp: $(SRCDIR)/$(DIR.AWS)/skinlex.cpp
	-$(RM) $@
	$(CP) $(SRCDIR)/$(DIR.AWS)/skinlex.cpp $@
$(AWS.DERIVED.DIR)/skinpars.cpp: $(SRCDIR)/$(DIR.AWS)/skinpars.cpp
	-$(RM) $@
	$(CP) $(SRCDIR)/$(DIR.AWS)/skinpars.cpp $@
$(AWS.DERIVED.DIR)/skinpars.hpp: $(SRCDIR)/$(DIR.AWS)/skinpars.hpp
	-$(RM) $@
	$(CP) $(SRCDIR)/$(DIR.AWS)/skinpars.hpp $@
else
{'fraction_non_alphanumeric': 0.290006447453256, 'fraction_numerical': 0.0, 'mean_word_length': 2.8075601374570445, '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': '467963', 'n_tokens_mistral': 3008, 'n_tokens_neox': 2963, 'n_words': 541}