From: j8takagi Date: Wed, 4 Dec 2013 14:38:39 +0000 (+0900) Subject: テストのMakefileの記述を、GNU以外のsedにも対応するよう変更 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75b2837a9a230c411312a4cb61c7abc332255dff;p=makefiles.git テストのMakefileの記述を、GNU以外のsedにも対応するよう変更 --- diff --git a/latex_mk/test/bibtex/Makefile b/latex_mk/test/bibtex/Makefile index d92ec90..8373ada 100644 --- a/latex_mk/test/bibtex/Makefile +++ b/latex_mk/test/bibtex/Makefile @@ -55,12 +55,13 @@ bib-rebase: $(CMP) jpnbook.bib.base jpnbook.bib || $(CP) -v jpnbook.bib.base jpnbook.bib body-update: body-rebase - $(SED) -i -e 's/本文変更なし。/本文を変更。/' bibtex.tex + $(SED) -i.bak -e 's/本文変更なし。/本文を変更。/' bibtex.tex body-rebase: $(CMP) bibtex.tex.base bibtex.tex || $(CP) -v bibtex.tex.base bibtex.tex clean: tex-clean + $(RM) *.bak -distclean: rebase tex-distclean +distclean: rebase clean tex-distclean $(RM) bibtex_*.pdf diff --git a/latex_mk/test/makeindex/Makefile b/latex_mk/test/makeindex/Makefile index 596c948..c6e0f03 100644 --- a/latex_mk/test/makeindex/Makefile +++ b/latex_mk/test/makeindex/Makefile @@ -30,10 +30,10 @@ makeindex_3.pdf: index-update @$(CP) -v makeindex.pdf $@ body-update: - $(SED) -i -e 's/本文変更なし。/本文を変更。/' makeindex.tex + $(SED) -i.bak -e 's/本文変更なし。/本文を変更。/' makeindex.tex index-update: - $(SED) -i -e 's/楽譜の/楽譜\\index{がくふ@楽譜}の/' makeindex.tex + $(SED) -i.bak -e 's/楽譜の/楽譜\\index{がくふ@楽譜}の/' makeindex.tex rebase: $(CMP) makeindex.tex.base makeindex.tex || $(CP) -v makeindex.tex.base makeindex.tex @@ -41,6 +41,7 @@ rebase: include latex.mk clean: tex-clean + $(RM) *.bak distclean: rebase clean tex-distclean $(RM) makeindex_*.pdf diff --git a/latex_mk/test/simple/Makefile b/latex_mk/test/simple/Makefile index 450570e..04ab342 100644 --- a/latex_mk/test/simple/Makefile +++ b/latex_mk/test/simple/Makefile @@ -23,7 +23,7 @@ simple_2.pdf: update @$(CP) -v simple.pdf $@ update: - $(SED) -i -e 's/,/、/g' -e 's/./。/g' simple.tex + $(SED) -i.bak -e 's/,/、/g' -e 's/./。/g' simple.tex rebase: $(CMP) simple.tex.base simple.tex || $(CP) -v simple.tex.base simple.tex @@ -31,6 +31,7 @@ rebase: include latex.mk clean: tex-clean + $(RM) *.bak -distclean: rebase tex-distclean +distclean: rebase clean tex-distclean $(RM) simple_*.pdf