From 9d162bf188a091431741ca8b8e38997b8787ba8c Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Mon, 16 Jun 2008 15:37:23 +0000 Subject: [PATCH] * m4/po.m4: remove POTFILES.in if it is empty, otherwise it is rebuilt only when a Makefile.am is modified. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25278 a592a061-630c-0410-9148-cb99ea01b6c8 --- m4/po.m4 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/m4/po.m4 b/m4/po.m4 index 00133ef36f..3bfafbe1c2 100644 --- a/m4/po.m4 +++ b/m4/po.m4 @@ -112,6 +112,13 @@ changequote([,])dnl test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" + # Remove POTFILES.in if it is empty, such that it can be + # correctly rebuilt later. + if test -s "$ac_given_srcdir/$ac_dir/POTFILES.in"; then + : ; + else + rm -f "$ac_given_srcdir/$ac_dir/POTFILES.in" + fi # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters.