* 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
This commit is contained in:
Enrico Forestieri 2008-06-16 15:37:23 +00:00
parent 5801eef4bc
commit 9d162bf188

View File

@ -112,6 +112,13 @@ changequote([,])dnl
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 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" 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" 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 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
# on $ac_dir but don't depend on user-specified configuration # on $ac_dir but don't depend on user-specified configuration
# parameters. # parameters.