annotate gcc/jit/docs/_build/texinfo/Makefile @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 # Makefile for Sphinx Texinfo output
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 infodir ?= /usr/share/info
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 MAKEINFO = makeinfo --no-split
kono
parents:
diff changeset
6 MAKEINFO_html = makeinfo --no-split --html
kono
parents:
diff changeset
7 MAKEINFO_plaintext = makeinfo --no-split --plaintext
kono
parents:
diff changeset
8 TEXI2PDF = texi2pdf --batch --expand
kono
parents:
diff changeset
9 INSTALL_INFO = install-info
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 ALLDOCS = $(basename $(wildcard *.texi))
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 all: info
kono
parents:
diff changeset
14 info: $(addsuffix .info,$(ALLDOCS))
kono
parents:
diff changeset
15 plaintext: $(addsuffix .txt,$(ALLDOCS))
kono
parents:
diff changeset
16 html: $(addsuffix .html,$(ALLDOCS))
kono
parents:
diff changeset
17 pdf: $(addsuffix .pdf,$(ALLDOCS))
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 install-info: info
kono
parents:
diff changeset
20 for f in *.info; do \
kono
parents:
diff changeset
21 cp -t $(infodir) "$$f" && \
kono
parents:
diff changeset
22 $(INSTALL_INFO) --info-dir=$(infodir) "$$f" ; \
kono
parents:
diff changeset
23 done
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 uninstall-info: info
kono
parents:
diff changeset
26 for f in *.info; do \
kono
parents:
diff changeset
27 rm -f "$(infodir)/$$f" ; \
kono
parents:
diff changeset
28 $(INSTALL_INFO) --delete --info-dir=$(infodir) "$$f" ; \
kono
parents:
diff changeset
29 done
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 %.info: %.texi
kono
parents:
diff changeset
32 $(MAKEINFO) -o '$@' '$<'
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 %.txt: %.texi
kono
parents:
diff changeset
35 $(MAKEINFO_plaintext) -o '$@' '$<'
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 %.html: %.texi
kono
parents:
diff changeset
38 $(MAKEINFO_html) -o '$@' '$<'
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 %.pdf: %.texi
kono
parents:
diff changeset
41 -$(TEXI2PDF) '$<'
kono
parents:
diff changeset
42 -$(TEXI2PDF) '$<'
kono
parents:
diff changeset
43 -$(TEXI2PDF) '$<'
kono
parents:
diff changeset
44
kono
parents:
diff changeset
45 clean:
kono
parents:
diff changeset
46 -rm -f *.info *.pdf *.txt *.html
kono
parents:
diff changeset
47 -rm -f *.log *.ind *.aux *.toc *.syn *.idx *.out *.ilg *.pla *.ky *.pg
kono
parents:
diff changeset
48 -rm -f *.vr *.tp *.fn *.fns *.def *.defs *.cp *.cps *.ge *.ges *.mo
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 .PHONY: all info plaintext html pdf install-info uninstall-info clean