X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=m4%2Fpo.m4;h=1a5353681edc43cf45ff29a62692260fb0571a94;hb=473b41a736134fab0eebe19563ef831d9aba6f8d;hp=f2795eea0ca42665ceedb08f4dd90f79c25bfe1f;hpb=f84a1c6e5c6173e7d0aea0fb2adde988ee5f7b27;p=lyx.git diff --git a/m4/po.m4 b/m4/po.m4 index f2795eea0c..1a5353681e 100644 --- a/m4/po.m4 +++ b/m4/po.m4 @@ -114,6 +114,13 @@ AC_DEFUN([AM_PO_SUBDIRS], 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.