summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/songs/Makefile
blob: 73feef03fd2f9df31aeaedb511032be93e2c28f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
LATEX = pdflatex
TEXOUT = pdf
MAKEINDEX = makeindex

all: songs.sty songs.$(TEXOUT)

songs.sty: songs.ins songs.dtx
	$(LATEX) $<

songs.$(TEXOUT): songs.dtx songs.sty
	$(LATEX) $<
	$(MAKEINDEX) -s gind.ist -o $(join $(basename $@ $@),.ind .idx)
	$(MAKEINDEX) -s gglo.ist -o $(join $(basename $@ $@),.gls .glo)
	$(LATEX) $<
	$(MAKEINDEX) -s gind.ist -o $(join $(basename $@ $@),.ind .idx)
	$(MAKEINDEX) -s gglo.ist -o $(join $(basename $@ $@),.gls .glo)
	$(LATEX) $<

clean:
	-rm songs.$(TEXOUT) songs.sty
	-rm *.aux *.log *.out
	-rm *.ind *.idx *.gls *.glo *.ilg