X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=doc%2FMakefile;h=e4a6b537ed82b308b26b6782ae69fd5e27428dbc;hb=1b50560326f7ce2b73848537b20d48a961195a0f;hp=e3569891a5a8077dc74067b66ab9454132ca5fe7;hpb=6d481ded788fac267c4d6a115184936052df7430;p=YACASL2.git diff --git a/doc/Makefile b/doc/Makefile index e356989..e4a6b53 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,5 +1,36 @@ -.PHPNY: html clean -html: yacasl2.texi - @makeinfo --html $^ -clean: - @rm -rf yacasl2 +RMR := $(RM) -r + +DOCS := install manual +CSS := style.css + +prefix ?= ~ +infodir ?= $(prefix)/share/info + +.PHONY: base all info html htmls pdf distclean clean + +base: install.txt info html + +all: base htmls pdf + +info: yacasl2.info + +html: $(addsuffix .html,$(DOCS)) + +htmls: $(addsuffix _html,$(DOCS)) + +pdf: $(addsuffix .pdf,$(DOCS)) + +yacasl2.info: manual.texi + $(MAKEINFO) $(MAKEINFO_FLAGS) $< + +# makeで作成されたドキュメントはすべて削除 +distclean: clean texinfo-distclean + $(RM) install.txt *.info *.html *_html *.pdf + +# make baseで作成されたドキュメントは残す +clean: texinfo-clean + $(RM) *_html *.pdf + +include texinfo.mk + +include install-info.mk