summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fithesis/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/fithesis/test/Makefile')
-rw-r--r--macros/latex/contrib/fithesis/test/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/macros/latex/contrib/fithesis/test/Makefile b/macros/latex/contrib/fithesis/test/Makefile
new file mode 100644
index 0000000000..ea672afc06
--- /dev/null
+++ b/macros/latex/contrib/fithesis/test/Makefile
@@ -0,0 +1,18 @@
+.PHONY: all clean implode
+
+# This target runs all the tests.
+all: implode
+ for file in *.tex; do \
+ [ $$file = '*.tex' ] && continue; \
+ ln -s "$$file" current.tex && \
+ pdflatex current && pdflatex current && make clean && \
+ lualatex current && lualatex current && make implode; \
+ done
+
+# This target removes any auxiliary files.
+clean:
+ rm -f *.aux *.log *.out *.lot *.lof *.toc
+
+# This target removes any files created during the testing.
+implode: clean
+ rm -f texput.log current.*