You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
488 B
22 lines
488 B
.PHONY: clean all
|
|
|
|
DPI?=300
|
|
|
|
all: main.png
|
|
clean:
|
|
rm -f main.pdf
|
|
rm -f main.svg
|
|
rm -f main-tmp.svg
|
|
rm -f main.png
|
|
|
|
main.pdf: main.tex
|
|
latexmk -lualatex -interaction=nonstopmode main
|
|
|
|
main.svg: main.pdf
|
|
inkscape -o main-tmp.svg main.pdf 2>/dev/null
|
|
sed "s#font-family:Andika#font-family:Andika;font-feature-settings: 'ss13' 1#" main-tmp.svg > main.svg
|
|
rm main-tmp.svg
|
|
|
|
main.png: main.svg
|
|
inkscape -d $(DPI) -b white --export-png-color-mode=RGB_8 -o main.png main.svg 2>/dev/null
|
|
|