X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2FMakefile;h=7d575e24805d28f915d766e3d309b0dd2017f645;hb=1906078707b52a1534aba7c18630f9fe7a33b3ae;hp=59511eb7e951c6fbf53b21e813a990e8b2d53159;hpb=8fbd22aa630841dcf5457cd7a6b2a2e44f5ab2fe;p=YACASL2.git diff --git a/doc/Makefile b/doc/Makefile index 59511eb..7d575e2 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,5 +1,35 @@ -.PHPNY: html clean -html: yacasl2.texi - @makeinfo --html --css-ref=style.css $^ -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 + +include texinfo.mk + +include install-info.mk