11INPUT ?= src/cv/index.tex
22OUTPUT ?= $(shell basename "$(shell dirname "$(INPUT ) ") ")
3- DOCKER_COMPOSE = docker-compose
4- UP = ${DOCKER_COMPOSE} up
53OUTPUT_DIRECTORY = build
64LATEXMK_ARGS ?= -halt-on-error -MP -logfilewarninglist -pdf -shell-escape -interaction=nonstopmode -file-line-error -output-directory=$(OUTPUT_DIRECTORY )
7- DOCKER_TEXINPUTS = "/home/src//:"
85TEXINPUTS = "$(shell pwd) /src//:"
96
10- DOCKER_TEXLIVE_RUN = ${DOCKER_COMPOSE} run -e TEXINPUTS=$(DOCKER_TEXINPUTS ) texlive
11- DOCKER_PANDOC_RUN = ${DOCKER_COMPOSE} run pandoc
12- DOCKER_PLANTUML_RUN = ${DOCKER_COMPOSE} run plantuml
13- DOCKER_CONVERT_RUN = ${DOCKER_COMPOSE} run convert
14- DOCKER_LATEXMK_COMMAND = $(DOCKER_TEXLIVE_RUN ) latexmk $(LATEXMK_ARGS )
15-
167TEXLIVE_RUN = TEXINPUTS=$(TEXINPUTS )
178PANDOC_RUN = pandoc
189PLANTUML_RUN = plantuml
@@ -33,46 +24,20 @@ build :
3324 $(LATEXMK_COMMAND ) -jobname=$(OUTPUT ) $(INPUT )
3425 $(MAKE ) chmodbuild
3526
36- docker-build :
37- $(DOCKER_LATEXMK_COMMAND ) -jobname=$(OUTPUT ) $(INPUT )
38- $(MAKE ) chmodbuild
39-
4027plantuml :
4128 $(PLANTUML_RUN ) -tsvg src/presentation/resources/* .plantuml
4229
43- docker-plantuml :
44- $(DOCKER_PLANTUML_RUN ) -tsvg src/presentation/resources/* .plantuml
45-
4630pandoc :
4731 $(PANDOC_RUN ) -s $(INPUT ) -o $(OUTPUT )
4832
49- docker-pandoc :
50- $(DOCKER_PANDOC_RUN ) -s $(INPUT ) -o $(OUTPUT )
51-
52- docker-convert :
53- $(DOCKER_CONVERT_RUN ) -density 1200 $(INPUT ) $(OUTPUT )
54-
5533latexindent :
5634 $(TEXLIVE_RUN ) latexindent
5735
58- docker-latexindent :
59- $(DOCKER_TEXLIVE_RUN ) latexindent
60-
6136clean :
6237 rm -rf build
6338
64- docker-clean :
65- $(DOCKER_TEXLIVE_RUN ) rm -rf build
66-
67- docker-lint :
68- $(foreach file, $(call rwildcard,$(shell dirname "$(INPUT ) ") ,* .tex) , $(DOCKER_TEXLIVE_RUN ) lacheck $(file ) ;)
69- $(foreach file, $(call rwildcard,$(shell dirname "$(INPUT ) ") ,* .tex) , $(DOCKER_TEXLIVE_RUN ) chktex $(file ) ;)
70- $(foreach file, $(call rwildcard,$(shell dirname "$(INPUT ) ") ,* .tex) , $(DOCKER_TEXLIVE_RUN ) latexindent $(file ) ;)
71-
7239lint :
73- $(foreach file, $(call rwildcard,$(shell dirname "$(INPUT ) ") ,* .tex) , lacheck $(file ) ;)
74- $(foreach file, $(call rwildcard,$(shell dirname "$(INPUT ) ") ,* .tex) , chktex $(file ) ;)
75- $(foreach file, $(call rwildcard,$(shell dirname "$(INPUT ) ") ,* .tex) , latexindent $(file ) ;)
40+ $(foreach file, $(call rwildcard,$(shell dirname "$(INPUT ) ") ,* .tex) , latexindent -l -w $(file ) ;)
7641
7742chmodbuild :
7843 $(TEXLIVE_RUN ) chmod 777 build
@@ -81,10 +46,6 @@ watch:
8146 $(LATEXMK_COMMAND ) -pvc -jobname=$(OUTPUT ) $(INPUT )
8247 $(MAKE ) chmodbuild
8348
84- docker-watch :
85- $(DOCKER_LATEXMK_COMMAND ) -pvc -jobname=$(OUTPUT ) $(INPUT )
86- $(MAKE ) chmodbuild
87-
8849fresh :
8950 $(MAKE ) chmodbuild clean build
9051
0 commit comments