<commit_before># Makefile for the TPE exam

TEMP_DIR = ../temp
RESULT_DIR = ../result
LATEX = pdflatex
BIBTEX = bibtex
MAKEINDEX = makeindex

define latex-it
$(eval FILE = $(firstword $^))
cp literatur.bib $(TEMP_DIR)
@echo "Building $(FILE)"
@echo $(FILE)
@$(LATEX) -draftmode -output-directory=$(TEMP_DIR) $(FILE)
@cd $(TEMP_DIR) ; $(BIBTEX) $(basename $(FILE)).aux 
# @cd $(TEMP_DIR) ; $(MAKEINDEX) $(basename $(FILE)).idx
@$(LATEX) -draftmode -output-directory=$(TEMP_DIR) $(FILE) > /dev/null
@$(LATEX) -draftmode -output-directory=$(TEMP_DIR) $(FILE) > /dev/null
@$(LATEX) -output-directory=$(TEMP_DIR) $(FILE)
endef


all: $(TEMP_DIR) $(RESULT_DIR) \
	$(TEMP_DIR)/seminararbeit.pdf \
	$(RESULT_DIR)/seminararbeit.pdf \

clean:
	rm -rf $(TEMP_DIR)
	rm -rf $(RESULT_DIR)

$(TEMP_DIR)/seminararbeit.pdf: seminararbeit.tex preambel.tex literatur.bib src/* img/*
	$(latex-it)

$(RESULT_DIR)/seminararbeit.pdf: $(TEMP_DIR)/seminararbeit.pdf
	cat $< > $@
 
$(TEMP_DIR):
	mkdir $(TEMP_DIR)

$(RESULT_DIR):
	mkdir $(RESULT_DIR)<commit_msg>Added biber and biblatex to makefile<commit_after># Makefile for the TPE exam

TEMP_DIR = ../temp
RESULT_DIR = ../result
LATEX = pdflatex
BIBTEX = biber
MAKEINDEX = makeindex

define latex-it
$(eval FILE = $(firstword $^))
cp literatur.bib $(TEMP_DIR)
@echo "Building $(FILE)"
@echo $(FILE)
@$(LATEX) -backend=biber -draftmode -output-directory=$(TEMP_DIR) $(FILE)
@cd $(TEMP_DIR) ; $(BIBTEX) $(basename $(FILE)) 
# @cd $(TEMP_DIR) ; $(MAKEINDEX) $(basename $(FILE)).idx
@$(LATEX) -backend=biber -draftmode -output-directory=$(TEMP_DIR) $(FILE) > /dev/null
@$(LATEX) -backend=biber -draftmode -output-directory=$(TEMP_DIR) $(FILE) > /dev/null
@$(LATEX) -backend=biber -output-directory=$(TEMP_DIR) $(FILE)
endef


all: $(TEMP_DIR) $(RESULT_DIR) \
	$(TEMP_DIR)/seminararbeit.pdf \
	$(RESULT_DIR)/seminararbeit.pdf \

clean:
	rm -rf $(TEMP_DIR)
	rm -rf $(RESULT_DIR)

$(TEMP_DIR)/seminararbeit.pdf: seminararbeit.tex preambel.tex literatur.bib src/* img/*
	$(latex-it)

$(RESULT_DIR)/seminararbeit.pdf: $(TEMP_DIR)/seminararbeit.pdf
	cat $< > $@
 
$(TEMP_DIR):
	mkdir $(TEMP_DIR)

$(RESULT_DIR):
	mkdir $(RESULT_DIR)
{'fraction_non_alphanumeric': 0.1958139534883721, 'fraction_numerical': 0.0, 'mean_word_length': 5.198847262247838, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5470566', 'n_tokens_mistral': 883, 'n_tokens_neox': 867, 'n_words': 178}