summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/songproj/Makefile
blob: de8b57bc12546a0caea6c85bef7d5f1dacfad577 (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
all: sty pdf

sty: songproj.sty

pdf: songproj.pdf

%.pdf: %.dtx %.gls %.ind
	xelatex $<

%.glo %.aux %.idx: %.dtx
	xelatex $<

%.gls: %.glo
	makeindex -s gglo.ist -o $@ $<

%.ind: %.idx
	makeindex -s gind.ist -o $@ $<

%.sty: %.ins %.dtx
	xelatex $<

mostlyclean:
	rm -f *.aux *.glo *.gls *.hd *.idx *.ilg *.ind *.log *.out

ctanclean: mostlyclean
	rm -f *.sty

clean: mostlyclean
	rm -f *.pdf

maintainer-clean: ctanclean clean

.PHONY: all sty doc mostlyclean ctanclean clean maintainer-clean