~ninjin/Unicode2LaTeX.jl

ref: 99f64c091834115cb35e88f85430a22242d5da0a Unicode2LaTeX.jl/Makefile -rw-r--r-- 711 bytes
99f64c09Pontus Stenetorp Consistent quoting in Makefile 2 years ago
                                                                                
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
# vim: set ts=4 noexpandtab:

julia_cmd=julia --project
coverage=false

.PHONY: test
test: julia_cmd+=--check-bounds=yes
test:
	time ${julia_cmd} -e "import Pkg; Pkg.test(coverage=${coverage})"

.PHONY: coverage
coverage: coverage=true
coverage: julia_cmd+=--inline=no
coverage: test
	julia -e 'import Pkg; Pkg.add("Coverage")'
	julia -e 'import Coverage; println("Coverage: ", round(100*reduce(/, Coverage.get_summary(Coverage.process_folder())), digits=2), "%")'

.PHONY: instantiate
instantiate:
	${julia_cmd} -e 'import Pkg; Pkg.instantiate()'

.PHONY: generate
generate:
	${julia_cmd} -e 'import Unicode2LaTeX; Unicode2LaTeX.generate(nowarn=true)'

.PHONY: clean
clean:
	find . -name '*.cov' | xargs -r rm