1 # Makefile to test system setup
3 # The default test includes only font test using XeLaTeX
4 # additional tests might be added in the future
7 font-test: font-test.pdf review-font-test
12 -xelatex -interaction nonstopmode $<
14 review-font-test: font-test.pdf
15 @if [ ! -e "$<" ] ; then echo "ERROR: PDF file not generated, review logs"; exit 1; fi
16 @if [ -e "font-test.log" ] && grep -q "Some font shapes were not available" font-test.log ; then \
17 echo "ERROR: There was a problem inserting some fonts. Please review the output file: $<"; \
19 echo "All fonts were included, please review the file $< to ensure that fonts are embedded properly"; \
23 %.dvi: %.tex $(EXTRAFILES)
24 latex -interaction nonstopmode $<
32 # Build using pdflatex
34 # pdflatex -interaction nonstopmode $<
38 rm -f *.dvi *.log *.out *.aux *.pdf
40 .PHONY: clean test font-test