commit 14e903bac93d80f48c0df252d0389c84bad77460
parent f9f8d0c54d103995e2c8ccd42de8e5ca1cc931b2
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 23 Nov 2016 23:23:45 +0300
Make sure that 'clean' target is not failed in 'po' subdir.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
@@ -53,7 +53,10 @@ po-files-pre-distdir: update-POTFILES.in renew-po-configure.ac
# Clean in po directory only if po/Makefile was generated to avoid
# useless generation of po/Makefile only for 'clean' target
clean-local:
- @ if test -f po/Makefile; then $(am__cd) po && $(MAKE) $(AM_MAKEFLAGS) clean || exit 1; fi;
+ @ if test -f po/Makefile; then \
+ $(MAKE) $(AM_MAKEFLAGS) po/Makefile && \
+ $(am__cd) po && $(MAKE) $(AM_MAKEFLAGS) clean || exit 1; \
+ fi;
po/Makefile: $(srcdir_po)/Makefile.in.in $(srcdir_po)/Makevars $(srcdir_po)/POTFILES.in po/config.status
@$(am__cd) po && @SHELL@ ./config.status ./Makefile.in po-directories