Skip to content

Commit

Permalink
feat(Makefile): use subfolders in out
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Dünkelmann <[email protected]>
  • Loading branch information
MartinX3 committed Oct 10, 2024
1 parent c2ec457 commit 0df5791
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
DOCUMENT_NAME_APPLICATION = abschnitte/Bewerbung/*
DOCUMENT_NAME_JOB_SEARCH = abschnitte/Jobsuche/*
DOCUMENT_NAME_QUESTIONS = abschnitte/Fragen/*
COMPILER = latexmk -lualatex --output-directory=out

default | help:
@echo 'make | Zeigt die Hilfe'
@echo 'make build | Erstelle alle Dokumente mit latexmk'
Expand All @@ -15,13 +10,17 @@ default | help:
build: build_application build_job_search build_questions

build_application:
$(COMPILER) $(DOCUMENT_NAME_APPLICATION)
$(call compile,Bewerbung)

build_job_search:
$(COMPILER) $(DOCUMENT_NAME_JOB_SEARCH)
$(call compile,Jobsuche)

build_questions:
$(COMPILER) $(DOCUMENT_NAME_QUESTIONS)
$(call compile,Fragen)

clean:
rm -rf out/

define compile
latexmk -lualatex --output-directory=out/${1} abschnitte/${1}/*
endef

0 comments on commit 0df5791

Please sign in to comment.