-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
44 lines (35 loc) · 899 Bytes
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
SRCS = README.ctan \
LICENSE \
cu-num.sty \
cu-calendar.sty \
cu-util.sty \
cu-kinovar.sty \
cu-kruk.sty \
churchslavonic.sty \
churchslavonic.tex \
churchslavonic-en.tex \
churchslavonic-ru.tex \
gloss-churchslavonic.ldf
DOCS = churchslavonic-en.pdf \
churchslavonic-ru.pdf
all: package
test:
(cd tests; make all)
clean:
rm -f *.log *.aux *.pdf *.toc *.out comment.cut churchslavonic.zip
docs: $(DOCS)
package: churchslavonic.zip
churchslavonic.zip: $(SRCS) $(DOCS)
rm -rf /tmp/churchslavonic
mkdir /tmp/churchslavonic
cp $^ /tmp/churchslavonic
mv /tmp/churchslavonic/README.ctan /tmp/churchslavonic/README
rm -f $@
(cd /tmp; zip $@ -r churchslavonic)
mv /tmp/churchslavonic.zip .
rm -rf /tmp/churchslavonic
$(DOCS): $(SRCS)
# run xelatex twice to generate toc and references
%.pdf: %.tex
lualatex --interaction=nonstopmode $<
lualatex --interaction=nonstopmode $<