Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
i4
TeX Vorlagen
neo Demo
Commits
eb209df0
Commit
eb209df0
authored
Mar 29, 2018
by
Bernhard Heinloth
Browse files
Support different generators
parent
d2a751a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
eb209df0
SCREENSHOT_DIR
:=
$(
shell
dirname
$(
realpath
$(
lastword
$(MAKEFILE_LIST)
)))
/.screenshots
TARGET
:=
demo.pdf
include
theme/Makefile
all
:
demo
.PHONY
:
alldemo demo-xelatex demo-lualatex demo-pdflatex
demo-xelatex
:
LATEXMK_GEN := -xelatex
demo-lualatex
:
LATEXMK_GEN := -lualatex
demo-pdflatex
:
LATEXMK_GEN := -pdf
.PHONY
:
demo
demo-xelatex demo-lualatex demo-pdflatex
:
clean
demo
:
demo.pdf
mkdir
.screenshots
pdftoppm
-scale-to
500
-f
1
-l
5
-
jpe
g
$<
$(SCREENSHOT_DIR)
/
$@
demo
demo-xelatex demo-lualatex demo-pdflatex
:
$(TARGET)
test
-d
"
$(SCREENSHOT_DIR)
"
||
mkdir
"
$(SCREENSHOT_DIR)
"
pdftoppm
-scale-to
500
-f
1
-l
5
-
pn
g
$<
"
$(SCREENSHOT_DIR)
/
$@
"
mrproper
::
@
rm
-f
demo.pdf
$(SCREENSHOT_DIR)
/demo-
*
.jpg
@
rmdir
$(SCREENSHOT_DIR)
rm
-f
"
$(TARGET)
"
"
$(SCREENSHOT_DIR)
"
/demo-
*
.png
test
-d
"
$(SCREENSHOT_DIR)
"
&&
rmdir
--ignore-fail-on-non-empty
"
$(SCREENSHOT_DIR)
"
include
theme/Makefile
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment