2022-09-04 17:31:09 +02:00
|
|
|
LATEXMK = latexmk -cd -pdf -interaction=nonstopmode
|
2022-08-10 09:57:15 +02:00
|
|
|
|
|
|
|
MANUAL_ROOT = assets/manual
|
|
|
|
|
2022-09-04 17:31:09 +02:00
|
|
|
LUA_SRCS = $(wildcard advtrains*/*.lua)
|
2022-08-10 09:57:15 +02:00
|
|
|
|
|
|
|
TEX_PATH = $(MANUAL_ROOT)/tex
|
2022-09-04 17:31:09 +02:00
|
|
|
TEX_ALL_SRCS = $(wildcard $(TEX_PATH)/*.tex)
|
2022-08-10 09:57:15 +02:00
|
|
|
TEX_MAIN_SRCS = $(wildcard $(TEX_PATH)/*manual.tex)
|
|
|
|
TEX_MAIN_DSTS = $(TEX_MAIN_SRCS:%.tex=%.pdf)
|
|
|
|
|
|
|
|
all: doc
|
|
|
|
|
2022-09-04 17:31:09 +02:00
|
|
|
doc: doc-pdf doc-ldoc
|
2022-08-10 09:57:15 +02:00
|
|
|
|
|
|
|
doc-pdf: $(TEX_MAIN_DSTS)
|
2022-09-04 17:31:09 +02:00
|
|
|
%.pdf:: %.tex $(TEX_ALL_SRCS)
|
2022-08-14 17:46:33 +02:00
|
|
|
$(LATEXMK) $<
|
2022-08-10 09:57:15 +02:00
|
|
|
|
2022-09-04 17:31:09 +02:00
|
|
|
doc-ldoc:: $(LUA_SRCS)
|
|
|
|
ldoc .
|
|
|
|
tar cJf assets/manual/ldoc.tar.xz -C assets/manual/ldoc_output .
|