<commit_before># Module.mk for mathtex module
# Copyright (c) 2012 <NAME> and <NAME>
#
# Author: <NAME>, 30/10/2012

MODNAME      := mathtext
MODDIR       := $(ROOT_SRCDIR)/graf2d/$(MODNAME)
MODDIRS      := $(MODDIR)/src
MODDIRI      := $(MODDIR)/inc

MATHTEXTDIR  := $(MODDIR)
MATHTEXTDIRS := $(MATHTEXTDIR)/src
MATHTEXTDIRI := $(MATHTEXTDIR)/inc

##### libmathtext #####
MATHTEXTH    := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
MATHTEXTS    := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
MATHTEXTO    := $(call stripsrc,$(MATHTEXTS:.cxx=.o))

MATHTEXTDEP  := $(MATHTEXTO:.o=.d)

ifeq ($(PLATFORM),win32)
MATHTEXTLIB  := $(LPATH)\libmathtext.lib
MATHTEXTAR   := link.exe -lib /out:
else
MATHTEXTLIB  := $(LPATH)/libmathtext.a
MATHTEXTAR   := $(AR) cru 
endif

MATHTEXTLIBDEP := $(MATHTEXTLIB)

# used in the main Makefile
ALLHDRS     += $(patsubst $(MODDIRI)/%.h,include/%.h,$(MATHTEXTH))
ALLLIBS     += $(MATHTEXTLIB)

# include all dependency files
INCLUDEFILES += $(MATHTEXTDEP)

##### local rules #####
.PHONY:         all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)

include/%.h:    $(MATHTEXTDIRI)/%.h
		cp $< $@

$(MATHTEXTLIB): $(MATHTEXTO)
		$(MATHTEXTAR)$@ $(MATHTEXTO)

all-$(MODNAME): $(MATHTEXTLIB)

clean-$(MODNAME):
		@rm -f $(MATHTEXTO)

clean::         clean-$(MODNAME)

distclean-$(MODNAME): clean-$(MODNAME)
		@rm -f $(MATHTEXTDEP) $(MATHTEXTLIB)

distclean::     distclean-$(MODNAME)

##### extra rules ######
<commit_msg>From Bertrand: Use / instead of \  for win32<commit_after># Module.mk for mathtex module
# Copyright (c) 2012 <NAME> and <NAME>
#
# Author: <NAME>, 30/10/2012

MODNAME      := mathtext
MODDIR       := $(ROOT_SRCDIR)/graf2d/$(MODNAME)
MODDIRS      := $(MODDIR)/src
MODDIRI      := $(MODDIR)/inc

MATHTEXTDIR  := $(MODDIR)
MATHTEXTDIRS := $(MATHTEXTDIR)/src
MATHTEXTDIRI := $(MATHTEXTDIR)/inc

##### libmathtext #####
MATHTEXTH    := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
MATHTEXTS    := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
MATHTEXTO    := $(call stripsrc,$(MATHTEXTS:.cxx=.o))

MATHTEXTDEP  := $(MATHTEXTO:.o=.d)

ifeq ($(PLATFORM),win32)
MATHTEXTLIB  := $(LPATH)/libmathtext.lib
MATHTEXTAR   := link.exe -lib /out:
else
MATHTEXTLIB  := $(LPATH)/libmathtext.a
MATHTEXTAR   := $(AR) cru 
endif

MATHTEXTLIBDEP := $(MATHTEXTLIB)

# used in the main Makefile
ALLHDRS     += $(patsubst $(MODDIRI)/%.h,include/%.h,$(MATHTEXTH))
ALLLIBS     += $(MATHTEXTLIB)

# include all dependency files
INCLUDEFILES += $(MATHTEXTDEP)

##### local rules #####
.PHONY:         all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)

include/%.h:    $(MATHTEXTDIRI)/%.h
		cp $< $@

$(MATHTEXTLIB): $(MATHTEXTO)
		$(MATHTEXTAR)$@ $(MATHTEXTO)

all-$(MODNAME): $(MATHTEXTLIB)

clean-$(MODNAME):
		@rm -f $(MATHTEXTO)

clean::         clean-$(MODNAME)

distclean-$(MODNAME): clean-$(MODNAME)
		@rm -f $(MATHTEXTDEP) $(MATHTEXTLIB)

distclean::     distclean-$(MODNAME)

##### extra rules ######

{'fraction_non_alphanumeric': 0.20987654320987653, 'fraction_numerical': 0.010677344010677344, 'mean_word_length': 4.2229965156794425, 'pattern_counts': {'":': 0, '<': 11, '<?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': '3483145', 'n_tokens_mistral': 1265, 'n_tokens_neox': 1202, 'n_words': 218}