advtrains/Makefile

23 lines
498 B
Makefile
Raw Normal View History

2022-09-04 17:31:09 +02:00
LATEXMK = latexmk -cd -pdf -interaction=nonstopmode
MANUAL_ROOT = assets/manual
2022-09-04 17:31:09 +02:00
LUA_SRCS = $(wildcard advtrains*/*.lua)
TEX_PATH = $(MANUAL_ROOT)/tex
2022-09-04 17:31:09 +02:00
TEX_ALL_SRCS = $(wildcard $(TEX_PATH)/*.tex)
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
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-09-04 17:31:09 +02:00
doc-ldoc:: $(LUA_SRCS)
ldoc .
tar cJf assets/manual/ldoc.tar.xz -C assets/manual/ldoc_output .