diff --git a/workflow/Makefile b/workflow/Makefile new file mode 100644 index 0000000..a5002d1 --- /dev/null +++ b/workflow/Makefile @@ -0,0 +1,115 @@ +#---------------------------------------------------------------------- +# +# +# +#---------------------------------------------------------------------- +# make config... + +.SECONDEXPANSION: + +.DEFAULT_GOAL := all + + + +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# config... + +DIST_DIR := dist/PRINT + + +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# sources... + +SETUP := \ + setup.tex \ + macros.tex + + + +#---------------------------------------------------------------------- +# config/commands... + +MD = @mkdir -p + + +# primary engine, everything works... +# NOTE: several hacks had to be made -- see setup.tex +CMD = lualatex + +ARGS = -output-driver="xdvipdfmx -q -E -V 3" + + + +#---------------------------------------------------------------------- +# components and rules... + + +# book blocks... +# +# generic latex -> pdf... +# +%.pdf: %.tex $(SETUP) + -$(CMD) $< + + + +#---------------------------------------------------------------------- +# production targets... + +.PHONY: test +test: test.pdf + + +.PHONY: all +all: main.pdf cover.pdf endpaper.pdf + + + +#---------------------------------------------------------------------- +# packageing... + +.PHONY: dist-% +dist-%: % + $(MD) $(DIST_DIR)/$< + cp *$<*.pdf components/*$<*.pdf $(DIST_DIR)/$