バージョンアップ
[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 TEXITARGETS := install.html manual.html
11
12 INSTALL-INFO-TARGETS := yacasl2.info
13
14 .PHONY: base all info html htmls pdf casl2_spec distclean clean
15
16 base: install.txt info html
17
18 all: base htmls pdf casl2_spec
19
20 info: yacasl2.info
21
22 html: $(addsuffix .html,$(DOCS))
23
24 htmls: $(addsuffix _html,$(DOCS))
25
26 pdf: $(addsuffix .pdf,$(DOCS))
27
28 casl2_spec:
29         $(MAKE) -C casl2_spec
30
31 yacasl2.info: manual.texi
32         $(MAKEINFO) $(MAKEINFO_FLAGS) $<
33
34 # makeで作成されたドキュメントはすべて削除
35 distclean: clean texinfo-distclean
36         $(RM) install.txt *.info *.html *_html *.pdf
37         $(MAKE) -C casl2_spec distclean
38
39 # make baseで作成されたドキュメントは残す
40 clean: texinfo-clean
41         $(RM) *.bak
42         $(MAKE) -C casl2_spec clean
43
44 include texinfo.mk
45
46 include install-info.mk