1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
MYVIM ?= nvim --clean --headless
INMAKE := 1
export INMAKE
TESTS := $(wildcard test_*_reference.tex)
TESTS := $(TESTS:_reference.tex=)
.PHONY: test $(TESTS)
test: $(TESTS)
$(TESTS):
@rm -f $@_output.tex
@FILEIN=$@_input.tex FILEOUT=$@_output.tex $(MYVIM) -u test.vim
@diff $@_output.tex $@_reference.tex
@rm -f $@_output.tex
test_ampersands-off: export FLAGS=1
test_environments-ignored: export FLAGS=2
test_close-indented: export FLAGS=3
test_close_open_same_line: export FLAGS=4
|