summaryrefslogtreecommitdiff
path: root/support/chklref/test/Makefile
blob: 8050ea9098fc653764dd415fa009ff3b1e7a5576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
TESTFILES=test2 chklreftest tof

all: test clean

test:
	for f in ${TESTFILES}; \
	do \
		chklref -q "$$f.tex" | tee "${TMPDIR}/$$f.txt"; \
		if test -f "$$f-solution.txt"; then\
			if diff -q "$$f-solution.txt" "${TMPDIR}/$$f.txt"; then\
				echo "-- Check $$f.tex OK";\
			else\
				echo "-- Check $$f.tex FAIL";\
			fi;\
		fi;\
	done

clean:
	@echo "Cleaning all..."
	@\rm -f *.aux  *.toc  *.out  *~  *.blg  *.log *.dvi *.tex.chk

distclean: clean