From: j8takagi Date: Tue, 19 Jun 2018 08:55:25 +0000 (+0900) Subject: sedコマンドが、GNU版とBSD版の両方で動作するように X-Git-Tag: v0.4p0~13 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08a4af838fd0cd965a3cae9bf077effb6edae4a1;p=YACASL2.git sedコマンドが、GNU版とBSD版の両方で動作するように --- diff --git a/doc/texinfo.mk b/doc/texinfo.mk index 2e01708..148fff1 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 '' '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 '' 's%]*>%&%g' $@ + $(SED) -i '.org' -e 's%]*>%&%g' $@/*.html + $(RM) $@/*.html.org %.html %_html: $(CSS)