X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2FMakefile;h=7e7a0b19ebbe4a25497683b2afe389a6e28a1bc6;hb=921a2913cc7d7d499b273ce24ce204272ecfa4e9;hp=3c9b3be95e58ccf28d1b5756a44cad7d7e0d3af9;hpb=b3f91f53a0a715249df3582be19d064f831619a0;p=YACASL2.git diff --git a/doc/Makefile b/doc/Makefile index 3c9b3be..7e7a0b1 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,48 +1,30 @@ -DOCNAME = yacasl2 -SRC = $(DOCNAME).texi -CSS = style.css +DOCS := install manual +CSS := style.css -MV = mv -CP = cp -MKDIR = mkdir -RMRF = rm -rf -PTEX = ptex -TEXI2DVI = texi2dvi -DVI2PDF = dvipdfmx -MAKEINFO = makeinfo +prefix ?= ~ +infodir ?= $(prefix)/share/info -.PHONY: doc info htmlnosplit html pdf clean clean_docs clean_tex_tmp +.PHONY: base all info html htmls pdf distclean clean -.INTERMEDIATE: $(DOCNAME).dvi +base: install.txt info html -doc: info htmlnosplit html pdf +all: base htmls pdf -info: $(DOCNAME).info +info: yacasl2.info -htmlnosplit: $(DOCNAME).html - $(MV) $< index.html +html: $(addsuffix .html,$(DOCS)) -html: $(SRC) $(CSS) - if test ! -e $@; then $(MKDIR) $@; fi; - $(CP) $(CSS) $@/$(CSS) - $(MAKEINFO) -o $@ --html --css-ref=$(CSS) $(SRC) +htmls: $(addsuffix _html,$(DOCS)) -pdf: $(DOCNAME).pdf +pdf: $(addsuffix .pdf,$(DOCS)) -$(DOCNAME).html: $(SRC) $(CSS) - $(MAKEINFO) -o $@ --no-split --html --css-include=$(CSS) $(SRC) +yacasl2.info: manual.texi + $(MAKEINFO) $(MAKEINFO_FLAGS) $< -$(DOCNAME).pdf: $(DOCNAME).dvi - $(DVI2PDF) $^ +distclean: texinfo-distclean -$(DOCNAME).dvi: $(SRC) - TEX=$(PTEX) $(TEXI2DVI) -q --texinfo=@afourpaper -o $@ $< - @$(MAKE) clean_tex_tmp +clean: texinfo-clean -clean: clean_docs clean_tex_tmp +include texinfo.mk -clean_docs: - @$(RMRF) html $(DOCNAME).info $(DOCNAME).pdf $(DOCNAME).html - -clean_tex_tmp: - @$(RMRF) $(DOCNAME).aux $(DOCNAME).cp $(DOCNAME).cps $(DOCNAME).fn $(DOCNAME).ky $(DOCNAME).log $(DOCNAME).pg $(DOCNAME).pgs $(DOCNAME).tmp $(DOCNAME).toc $(DOCNAME).tp $(DOCNAME).vr +include install-info.mk