summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/manuscript/Makefile
blob: 0b5eb64eacd8165af7ed5304368dd249b37755f9 (plain)
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
all: manuscript.pdf

manuscript.pdf: manuscript.gls manuscript.ind
	xelatex manuscript.drv >/dev/null
	xelatex manuscript.drv >/dev/null
	xelatex manuscript.drv >/dev/null

manuscript.gls: manuscript.glo
	makeindex -s gglo -o manuscript.gls manuscript.glo >/dev/null 2>&1

manuscript.ind: manuscript.idx
	makeindex -s gind manuscript >/dev/null 2>&1

manuscript.glo: manuscript.drv
	xelatex manuscript.drv >/dev/null

manuscript.idx: manuscript.drv
	xelatex manuscript.drv >/dev/null

manuscript.drv: manuscript.dtx manuscript.ins
	xelatex manuscript.ins >/dev/null

manuscript.zip: manuscript.dtx manuscript.ins Makefile README manuscript.pdf
	$(eval TMPD := $(shell mktemp -d))
	$(eval CURDIR := $(shell pwd))
	mkdir -p $(TMPD)/manuscript
	install -p manuscript.{dtx,ins,pdf} README Makefile \
		$(TMPD)/manuscript/
	(cd $(TMPD) ; zip -9rvT $(CURDIR)/manuscript.zip manuscript/ )
	rm -rfv $(TMPD)

clean:
	rm -f *~ *.bak *.BAK *.aux *.drv *.glo *.gls *.idx *.ilg \
		*.ind *.log *.pdf *.sty

# vim: set noet: