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