7d575e24805d28f915d766e3d309b0dd2017f645
[YACASL2.git] / doc / Makefile
1 RMR := $(RM) -r
2
3 DOCS := install manual
4 CSS := style.css
5
6 prefix ?= ~
7 infodir ?= $(prefix)/share/info
8
9 .PHONY: base all info html htmls pdf distclean clean
10
11 base: install.txt info html
12
13 all: base htmls pdf
14
15 info: yacasl2.info
16
17 html: $(addsuffix .html,$(DOCS))
18
19 htmls: $(addsuffix _html,$(DOCS))
20
21 pdf: $(addsuffix .pdf,$(DOCS))
22
23 yacasl2.info: manual.texi
24         $(MAKEINFO) $(MAKEINFO_FLAGS) $<
25
26 # makeで作成されたドキュメントはすべて削除
27 distclean: clean texinfo-distclean
28         $(RM) install.txt *.info *.html *_html *.pdf
29
30 # make baseで作成されたドキュメントは残す
31 clean: texinfo-clean
32
33 include texinfo.mk
34
35 include install-info.mk