Commit 22aafee5 authored by Bernhard Heinloth's avatar Bernhard Heinloth
Browse files

Simplify Makefile

parent 440cd198
...@@ -3,13 +3,18 @@ TARGET := demo.pdf ...@@ -3,13 +3,18 @@ TARGET := demo.pdf
all: demo all: demo
.PHONY: alldemo demo-xelatex demo-lualatex demo-pdflatex screenshots .PHONY: all demo screenshots
demo-xelatex: LATEXMK_GEN := -xelatex %-xelatex:
demo-lualatex: LATEXMK_GEN := -lualatex $(MAKE) LATEXMK_GEN=-xelatex $*
demo-pdflatex: LATEXMK_GEN := -pdf
demo demo-xelatex demo-lualatex demo-pdflatex: | clean $(TARGET) %-lualatex:
$(MAKE) LATEXMK_GEN=-lualatex $*
%-pdflatex:
$(MAKE) LATEXMK_GEN=-pdf $*
demo: | clean $(TARGET)
test -d "$(SCREENSHOT_DIR)" || mkdir "$(SCREENSHOT_DIR)" test -d "$(SCREENSHOT_DIR)" || mkdir "$(SCREENSHOT_DIR)"
screenshots: $(TARGET) screenshots: $(TARGET)
...@@ -23,4 +28,3 @@ mrproper:: ...@@ -23,4 +28,3 @@ mrproper::
rmdir --ignore-fail-on-non-empty "$(SCREENSHOT_DIR)" || true rmdir --ignore-fail-on-non-empty "$(SCREENSHOT_DIR)" || true
include theme/Makefile include theme/Makefile
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment