summaryrefslogtreecommitdiff
path: root/Build/source/utils/songs/songs-2.17/src/songs/GNUmakefile.am
blob: e2ab1b3fe94a8ca1055adc8eb28169eebce56eb9 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
docdir = ${datadir}/doc/${PACKAGE}
doc_DATA = songs.pdf
EXTRA_DIST = Makefile songs.dtx songs.ins
SUFFIXES = .sty .ins .dtx .dvi .pdf .ps

all-local: songs.sty songs.pdf

dvi-local: songs.dvi

ps-local: songs.ps

pdf-local: songs.pdf

%.sty: %.ins %.dtx
	$(latex) $<

%.dvi: %.dtx %.sty
	$(latex) $<
	$(makeindex) -s gind.ist -o $*.ind $*.idx
	$(makeindex) -s gglo.ist -o $*.gls $*.glo
	$(latex) $<
	$(makeindex) -s gind.ist -o $*.ind $*.idx
	$(makeindex) -s gglo.ist -o $*.gls $*.glo
	$(latex) $<

%.pdf: %.dtx %.sty
	$(pdflatex) $<
	$(makeindex) -s gind.ist -o $*.ind $*.idx
	$(makeindex) -s gglo.ist -o $*.gls $*.glo
	$(pdflatex) $<
	$(makeindex) -s gind.ist -o $*.ind $*.idx
	$(makeindex) -s gglo.ist -o $*.gls $*.glo
	$(pdflatex) $<

%.ps: %.dvi
	$(dvips) $< -o $@

installdirs-local:
	-$(MKDIR_P) $(DESTDIR)$(texmfdir)/tex/latex/songs

install-data-local: songs.sty
	-$(MKDIR_P) $(DESTDIR)$(texmfdir)/tex/latex/songs
	$(INSTALL_DATA) songs.sty $(DESTDIR)$(texmfdir)/tex/latex/songs
	$(texhash)

uninstall-local:
	-rm -rf $(DESTDIR)$(texmfdir)/tex/latex/songs

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

clean-local:
	-rm -f songs.sty songs.dvi songs.pdf songs.ps