File: Makefile

package info (click to toggle)
vim-vimtex 2.16-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,660 kB
  • sloc: makefile: 367; python: 103
file content (22 lines) | stat: -rw-r--r-- 491 bytes parent folder | download
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