-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
25 lines (22 loc) · 1.05 KB
/
Makefile
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
test:
TEXINPUTS=luaoptions: lualatex -interaction=nonstopmode -shell-escape test.tex
manual:
@lua -e "if tonumber(io.popen('pandoc -v'):read():gsub('pandoc (.*)', '%1'):sub(1,1)) < 2 then print('Pandoc >= 2 required') ; os.exit(1) ; end"
pandoc -s -V fontfamily=libertine --toc-depth=4 -o lyluatex-tmp.tex lyluatex.md
@echo Inserting examples
@./insert-examples.lua lyluatex-tmp.tex lyluatex.tex || echo "Lua not found. Please make sure it's accessible in your PATH."
TEXINPUTS=luaoptions:ly: latexmk lyluatex
clean:
git clean -fXd
ctan: manual
mkdir -p ./ctan/lyluatex/ly
cp -R lyluatex.sty lyluatex*.lua \
latexmkrc lyluatexbase.cls lyluatexmanual.cls \
lyluatex.tex lyluatex.pdf LICENSE Contributors.md \
./ctan/lyluatex/
cp ly/*.ly ./ctan/lyluatex/ly/
echo 'Main author: [Fr. Jacques Peron](mailto:[email protected])\nThis material is subject to the MIT license.\n' \
> ./ctan/lyluatex/README.md
echo '# Lyluatex' >> ./ctan/lyluatex/README.md
sed -n -e '/## Usage/,$$p' README.md >> ./ctan/lyluatex/README.md
(cd ctan/ ; zip -r lyluatex lyluatex)