File: Makefile

package info (click to toggle)
vim-vimtex 2.16-3
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 8,660 kB
  • sloc: makefile: 367; python: 103
file content (23 lines) | stat: -rw-r--r-- 480 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
MYVIM ?= nvim --clean --headless

INMAKE := 1
export INMAKE

TESTS := $(wildcard *.vim)
TESTS := $(TESTS:.vim=)

.PHONY: test $(TESTS)

test: $(TESTS)

$(TESTS):
	@$(MYVIM) -u $@.vim

test-spaces: file\ with\ errors.log

file\ with\ errors.log: file\ with\ errors.tex input\ with\ spaces.tex
	@latexmk -file-line-error -interaction=nonstopmode -recorder -pdf \
	    file\ with\ errors.tex >/dev/null 2>&1 || true
	@mv "$@" "$@.bak"
	@latexmk -C >/dev/null 2>&1
	@mv "$@.bak" "$@"