forked from Josef-Friedrich/luakeys
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (51 loc) · 1.88 KB
/
Copy pathMakefile
File metadata and controls
62 lines (51 loc) · 1.88 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
jobname = luakeys
texmf = $(HOME)/texmf
texmftex = $(texmf)/tex/luatex
installdir = $(texmftex)/$(jobname)
all: install
install:
-tlmgr remove --force luakeys
mkdir -p $(installdir)
cp -f $(jobname).lua $(installdir)
cp -f $(jobname).sty $(installdir)
cp -f $(jobname).tex $(installdir)
cp -f $(jobname)-debug.tex $(installdir)
cp -f $(jobname)-debug.sty $(installdir)
test: test_lua test_examples test_tex doc_pdf
test_lua:
busted --lua=/usr/bin/lua5.3 --exclude-tags=skip tests/lua/test-*.lua
test_examples: test_examples_lua test_examples_plain test_examples_latex
test_examples_lua:
busted --pattern "**/*.lua" examples
test_examples_plain:
find examples -iname "*plain.tex" -exec luatex --output-dir=examples {} \;
test_examples_latex:
find examples -iname "*latex.tex" -exec latexmk -lualatex -cd --output-directory=examples {} \;
test_tex: test_tex_plain test_tex_latex
test_tex_plain:
find tests/tex/plain -iname "*.tex" -exec luatex --interaction=nonstopmode --output-dir=tests/tex/plain {} \;
test_tex_latex:
find tests/tex/latex -iname "*.tex" -exec lualatex --interaction=nonstopmode --output-dir=tests/tex/latex {} \;
doc: doc_pdf
doc_pdf:
lualatex --shell-escape luakeys-doc.tex
makeindex -s gglo.ist -o luakeys-doc.gls luakeys-doc.glo
makeindex -s gind.ist -o luakeys-doc.ind luakeys-doc.idx
lualatex --shell-escape luakeys-doc.tex
ctan: doc_pdf
rm -rf $(jobname).tar.gz
rm -rf $(jobname)/
mkdir $(jobname)
cp -f README.md $(jobname)/
cp -f $(jobname).lua $(jobname)/
cp -f $(jobname).sty $(jobname)/
cp -f $(jobname).tex $(jobname)/
cp -f luakeys-doc.tex $(jobname)/
cp -f luakeys-doc.pdf $(jobname)/
cp -f $(jobname)-debug.tex $(jobname)/
cp -f $(jobname)-debug.sty $(jobname)/
tar cvfz $(jobname).tar.gz $(jobname)
rm -rf $(jobname)
clean:
git clean -fdx
.PHONY: all doc_lua doc_lua_open test test_lua test_tex test_tex_plain test_text_latex test_examples_lua