From: j8takagi Date: Mon, 2 Dec 2013 02:10:31 +0000 (+0900) Subject: dvi作成エラー時の表示出力を修正 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36632f65cff42952f144c43444315e39bd0e881b;p=makefiles.git dvi作成エラー時の表示出力を修正 --- diff --git a/latex_mk/latex.mk b/latex_mk/latex.mk index c763cc9..9baa148 100644 --- a/latex_mk/latex.mk +++ b/latex_mk/latex.mk @@ -177,7 +177,7 @@ COMPILES.tex = \ # DVI -> PDF # 出力結果は.logファイルへ出力 DVIPDFCMD = $(DVIPDFMX) $(DVIPDFMXFLAG) $(BASE).dvi -COMPILE.dvi = $(ECHO) $(DVIPDFCMD); $(DVIPDFCMD) >>$(BASE).log 2>&1 || ($(CAT) $(BASE).log; exit 1) +COMPILE.dvi = $(ECHO) $(DVIPDFCMD); $(DVIPDFCMD) >>$(BASE).log 2>&1 || ($(SED) -n -e '/^Output written on toc_hyperref.dvi/,$$p' $(BASE).log; exit 1) # 索引中間ファイル(.ind)作成 MENDEXCMD = $(MENDEX) $(MENDEXFLAG) $(BASE).idx