projects
/
YACASL2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7915ebc
)
sedコマンドが、GNU版とBSD版の両方で動作するように
author
j8takagi
<j8takagi@nifty.com>
Tue, 19 Jun 2018 08:55:25 +0000
(17:55 +0900)
committer
j8takagi
<j8takagi@nifty.com>
Tue, 19 Jun 2018 08:55:25 +0000
(17:55 +0900)
doc/texinfo.mk
patch
|
blob
|
history
diff --git
a/doc/texinfo.mk
b/doc/texinfo.mk
index
2e01708
..
148fff1
100644
(file)
--- a/
doc/texinfo.mk
+++ b/
doc/texinfo.mk
@@
-1,5
+1,7
@@
.PHONY: texinfo-distclean texinfo-clean texinfo-textmp-clean
.PHONY: texinfo-distclean texinfo-clean texinfo-textmp-clean
+.INTERMEDIATE: *.org
+
CP := cp
DVIPDFMX := dvipdfmx
DVIPDFMX_FLAGS ?=
CP := cp
DVIPDFMX := dvipdfmx
DVIPDFMX_FLAGS ?=
@@
-53,13
+55,15
@@
endif
%.html: %.texi
$(MAKEINFO) -o $@ --no-split --html --css-include=$(CSS) $<
%.html: %.texi
$(MAKEINFO) -o $@ --no-split --html --css-include=$(CSS) $<
- $(SED) -i '' 's%<img src="\([^"]*\)" *[^>]*>%<object type="image/svg+xml" data="\1">&</object>%g' $@
+ $(SED) -i'.org' -e 's%<img src="\([^"]*\)" *[^>]*>%<object type="image/svg+xml" data="\1">&</object>%g' $@
+ $(RM) $@.org
%_html: %.texi
if test ! -e $@; then $(MKDIR) $@; fi
$(CP) $(CSS) $@/
$(MAKEINFO) -o $@ --html --css-ref=$(CSS) $<
%_html: %.texi
if test ! -e $@; then $(MKDIR) $@; fi
$(CP) $(CSS) $@/
$(MAKEINFO) -o $@ --html --css-ref=$(CSS) $<
- $(SED) -i '' 's%<img src="\([^"]*\)" *[^>]*>%<object type="image/svg+xml" data="\1">&</object>%g' $@
+ $(SED) -i '.org' -e 's%<img src="\([^"]*\)" *[^>]*>%<object type="image/svg+xml" data="\1">&</object>%g' $@/*.html
+ $(RM) $@/*.html.org
%.html %_html: $(CSS)
%.html %_html: $(CSS)