<commit_before>--- Makefile.orig	2018-04-30 11:58:38.000000000 +0200
+++ Makefile	2018-04-30 12:24:48.000000000 +0200
@@ -18,7 +18,7 @@
 
 #Base directory - adapt as needed
 # Unix:
-DESTDIR?=/usr/local
+PREFIX?=/usr/local
 #Uncomment next 2 lines for Windows
 #DESTDIR_DRIVE=C:
 #DESTDIR?=$(DESTDIR_DRIVE)/PROGRA~1/latex2rtf
@@ -27,11 +27,11 @@
 BINARY_NAME=latex2rtf$(EXE_SUFFIX)
 
 # Location of binary, man, info, and support files - adapt as needed
-BINDIR=/bin
-MANDIR=/share/$(PKGMANDIR)/man1
-INFODIR=/share/info
-SUPPORTDIR=/share/latex2rtf
-CFGDIR=/share/latex2rtf/cfg
+BINDIR=$(PREFIX)/bin
+MANDIR=$(PREFIX)/share/$(PKGMANDIR)/man1
+INFODIR=$(PREFIX)/share/info
+SUPPORTDIR=$(PREFIX)/share/latex2rtf
+CFGDIR=$(PREFIX)/share/latex2rtf/cfg
 
 #Uncomment next 5 lines for Windows
 #BINDIR=
@@ -138,7 +138,7 @@
 	test/enc_ot2.tex             test/keywords.tex       test/bib_natbib4.tex   \
 	test/graphicspath.tex        test/bib_style.tex      test/tikz.tex          \
 	test/tikz2.tex
-	
+
 OBJS=fonts.o direct.o encodings.o commands.o stack.o funct1.o tables.o \
 	chars.o ignore.o cfg.o main.o utils.o parser.o lengths.o counters.o \
 	preamble.o letterformat.o equations.o convert.o xrefs.o definitions.o graphics.o \
@@ -151,16 +151,16 @@
 	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS)	$(LIBS) -o $(BINARY_NAME)
 
 cfg.o: Makefile cfg.c
-	$(CC) $(CFLAGS) -DCFGDIR=\"$(DESTDIR)$(CFGDIR)\" -c cfg.c -o cfg.o
+	$(CC) $(CFLAGS) -DCFGDIR=\"$(CFGDIR)\" -DPATHSEP=\':\' -DENVSEP=\':\' -c cfg.c -o cfg.o
 
 main.o: Makefile main.c
-	$(CC) $(CFLAGS) -DCFGDIR=\"$(DESTDIR)$(CFGDIR)\" -c main.c -o main.o
+	$(CC) $(CFLAGS) -DCFGDIR=\"$(CFGDIR)\" -DPATHSEP=\':\' -DENVSEP=\':\' -c main.c -o main.o
 
 check test: latex2rtf
 	cd test && $(MAKE) clean
 	cd test && $(MAKE)
 	cd test && $(MAKE) check
-	
+
 fullcheck: latex2rtf
 	cd scripts && $(MAKE)
 	cd test && $(MAKE) clean
@@ -223,12 +223,12 @@
 	cp -p $(BINARY_NAME)     $(DESTDIR)$(BINDIR)
 	@echo "******************************************************************"
 	@echo "*** latex2rtf successfully installed as \"$(BINARY_NAME)\""
-	@echo "*** in directory \"$(DESTDIR)$(BINDIR)\""
+	@echo "*** in directory \"$(BINDIR)\""
 	@echo "***"
 	@echo "*** \"make install-info\" will install TeXInfo files "
 	@echo "***"
 	@echo "*** latex2rtf was compiled to search for its configuration files in"
-	@echo "***           \"$(DESTDIR)$(CFGDIR)\" "
+	@echo "***           \"$(CFGDIR)\" "
 	@echo "***"
 	@echo "*** If the configuration files are moved then either"
 	@echo "***   1) set the environment variable RTFPATH to this new location, or"
@@ -249,10 +249,10 @@
 appleclean:
 	sudo xattr -r -d com.apple.FinderInfo ../trunk
 	sudo xattr -r -d com.apple.TextEncoding ../trunk
-	
+
 splint:
 	splint -weak $(SRCS) $(HDRS)
-	
+
 .PHONY: all check checkdir clean depend dist doc install install_info realclean latex2rtf uptodate releasedate splint fullcheck
 
 # created using "make depend"
<commit_msg>Fix the Makefile a bit more<commit_after>--- Makefile.orig	2018-04-30 11:58:38.000000000 +0200
+++ Makefile	2018-04-30 12:54:27.000000000 +0200
@@ -18,7 +18,7 @@
 
 #Base directory - adapt as needed
 # Unix:
-DESTDIR?=/usr/local
+PREFIX?=/usr/local
 #Uncomment next 2 lines for Windows
 #DESTDIR_DRIVE=C:
 #DESTDIR?=$(DESTDIR_DRIVE)/PROGRA~1/latex2rtf
@@ -27,11 +27,11 @@
 BINARY_NAME=latex2rtf$(EXE_SUFFIX)
 
 # Location of binary, man, info, and support files - adapt as needed
-BINDIR=/bin
-MANDIR=/share/$(PKGMANDIR)/man1
-INFODIR=/share/info
-SUPPORTDIR=/share/latex2rtf
-CFGDIR=/share/latex2rtf/cfg
+BINDIR=$(PREFIX)/bin
+MANDIR=$(PREFIX)/share/$(PKGMANDIR)/man1
+INFODIR=$(PREFIX)/share/info
+SUPPORTDIR=$(PREFIX)/share/latex2rtf
+CFGDIR=$(PREFIX)/share/latex2rtf/cfg
 
 #Uncomment next 5 lines for Windows
 #BINDIR=
@@ -138,7 +138,7 @@
 	test/enc_ot2.tex             test/keywords.tex       test/bib_natbib4.tex   \
 	test/graphicspath.tex        test/bib_style.tex      test/tikz.tex          \
 	test/tikz2.tex
-	
+
 OBJS=fonts.o direct.o encodings.o commands.o stack.o funct1.o tables.o \
 	chars.o ignore.o cfg.o main.o utils.o parser.o lengths.o counters.o \
 	preamble.o letterformat.o equations.o convert.o xrefs.o definitions.o graphics.o \
@@ -151,16 +151,20 @@
 	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS)	$(LIBS) -o $(BINARY_NAME)
 
 cfg.o: Makefile cfg.c
-	$(CC) $(CFLAGS) -DCFGDIR=\"$(DESTDIR)$(CFGDIR)\" -c cfg.c -o cfg.o
+	$(CC) $(CFLAGS) -DCFGDIR=\"$(CFGDIR)\" $(PLATFORM) -c $*.c
 
 main.o: Makefile main.c
-	$(CC) $(CFLAGS) -DCFGDIR=\"$(DESTDIR)$(CFGDIR)\" -c main.c -o main.o
+	$(CC) $(CFLAGS) -DCFGDIR=\"$(CFGDIR)\" $(PLATFORM) -c $*.c
+
+%.o: Makefile %.c
+	$(CC) $(CFLAGS) $(PLATFORM) -c $*.c
 
 check test: latex2rtf
+
 	cd test && $(MAKE) clean
 	cd test && $(MAKE)
 	cd test && $(MAKE) check
-	
+
 fullcheck: latex2rtf
 	cd scripts && $(MAKE)
 	cd test && $(MAKE) clean
@@ -223,12 +227,12 @@
 	cp -p $(BINARY_NAME)     $(DESTDIR)$(BINDIR)
 	@echo "******************************************************************"
 	@echo "*** latex2rtf successfully installed as \"$(BINARY_NAME)\""
-	@echo "*** in directory \"$(DESTDIR)$(BINDIR)\""
+	@echo "*** in directory \"$(BINDIR)\""
 	@echo "***"
 	@echo "*** \"make install-info\" will install TeXInfo files "
 	@echo "***"
 	@echo "*** latex2rtf was compiled to search for its configuration files in"
-	@echo "***           \"$(DESTDIR)$(CFGDIR)\" "
+	@echo "***           \"$(CFGDIR)\" "
 	@echo "***"
 	@echo "*** If the configuration files are moved then either"
 	@echo "***   1) set the environment variable RTFPATH to this new location, or"
@@ -249,10 +253,10 @@
 appleclean:
 	sudo xattr -r -d com.apple.FinderInfo ../trunk
 	sudo xattr -r -d com.apple.TextEncoding ../trunk
-	
+
 splint:
 	splint -weak $(SRCS) $(HDRS)
-	
+
 .PHONY: all check checkdir clean depend dist doc install install_info realclean latex2rtf uptodate releasedate splint fullcheck
 
 # created using "make depend"

{'fraction_non_alphanumeric': 0.20929839391377852, 'fraction_numerical': 0.04294167371090448, 'mean_word_length': 3.533333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '6331545', 'n_tokens_mistral': 2552, 'n_tokens_neox': 2265, 'n_words': 539}