X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Ftexinfo.mk;h=37ff54a0c6d1692ddbc587aa37ee6b01e30dac9a;hb=a3aaf838e81e6f56edd7e85d60b2e1361ded6cc6;hp=bd3c4d43eb39ef1f1afffcb458e57d3b50722ec6;hpb=624b3647b7e85ff83585e8acd6eaf2f276ecf282;p=YACASL2.git
diff --git a/doc/texinfo.mk b/doc/texinfo.mk
index bd3c4d4..37ff54a 100644
--- a/doc/texinfo.mk
+++ b/doc/texinfo.mk
@@ -1,5 +1,7 @@
.PHONY: texinfo-distclean texinfo-clean texinfo-textmp-clean
+.INTERMEDIATE: *.org
+
CP := cp
DVIPDFMX := dvipdfmx
DVIPDFMX_FLAGS ?=
@@ -53,13 +55,15 @@ endif
%.html: %.texi
$(MAKEINFO) -o $@ --no-split --html --css-include=$(CSS) $<
- $(SED) -i '' -e 's%%%g' $@
+ $(SED) -i'.org' -e 's%]*>%%g' $@
+ $(RM) $@.org
%_html: %.texi
if test ! -e $@; then $(MKDIR) $@; fi
$(CP) $(CSS) $@/
$(MAKEINFO) -o $@ --html --css-ref=$(CSS) $<
- $(SED) -i '' -e 's%%%g' $@
+ $(SED) -i'.org' -e 's%]*>%%g' $@/*.html
+ $(RM) $@/*.html.org
%.html %_html: $(CSS)