File: Makefile

package info (click to toggle)
vim-vimtex 2.16-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,660 kB
  • sloc: makefile: 367; python: 103
file content (37 lines) | stat: -rw-r--r-- 749 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
MYVIM ?= nvim --clean --headless

INMAKE := 1
export INMAKE

TESTS := $(wildcard test*.vim)
TESTS := $(filter-out test-backend,$(TESTS:.vim=))

.PHONY: test $(TESTS)

test: test-backend $(TESTS) prepare-test-clean

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

test-backend: latexrun
	@PATH=$$PATH:. chronic $(MYVIM) -u $@.vim
	@rm -f minimal.*
	@rm -f pdflatex*.fls
	@rm -f .latexrun.db.lock
	@rm -rf out

test-clean: prepare-test-clean

prepare-test-clean:
	@touch test-clean.log
	@touch test-clean.aux
	@touch test-clean.pdf
	@touch generated-extra_files.out
	@mkdir -p _minted-test-clean
	@touch _minted-test-clean/stuffhere

latexrun:
	@wget \
	  https://raw.githubusercontent.com/aclements/latexrun/master/latexrun \
	  >/dev/null 2>&1
	@chmod u+x latexrun