X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2FMakefile;h=47ee21fb5f059cabd6a1595af8800b87bb383c11;hb=2d7d58498f34123eb9c2d082d93578079e6af56a;hp=e4a6b537ed82b308b26b6782ae69fd5e27428dbc;hpb=1b50560326f7ce2b73848537b20d48a961195a0f;p=YACASL2.git diff --git a/doc/Makefile b/doc/Makefile index e4a6b53..47ee21f 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,4 +1,5 @@ RMR := $(RM) -r +SED := sed DOCS := install manual CSS := style.css @@ -15,8 +16,10 @@ all: base htmls pdf info: yacasl2.info html: $(addsuffix .html,$(DOCS)) + for f in $^; do $(SED) -i.bak -e 's!dir\.html#Top!\.\./!g' $$f && $(RM) $$f.bak; done htmls: $(addsuffix _html,$(DOCS)) + for d in $^; do $(SED) -i.bak -e 's!\.\./dir/index\.html!\.\./\.\./!g' $$d/index.html && $(RM) $$d/index.html.bak; done pdf: $(addsuffix .pdf,$(DOCS)) @@ -29,7 +32,7 @@ distclean: clean texinfo-distclean # make baseで作成されたドキュメントは残す clean: texinfo-clean - $(RM) *_html *.pdf + $(RM) *.bak include texinfo.mk