build: Fix srcdir = builddir build

Don't try to copy a file over itself if srcdir == builddir
This commit is contained in:
Bastien Nocera
2018-02-06 11:21:06 +01:00
parent 8eba309920
commit 2f78c46dcf

View File

@ -23,7 +23,7 @@ check-translations:
update-translations: create-pot check-translations update-translations: create-pot check-translations
@tx -r $(srcdir) pull --all --force --skip @tx -r $(srcdir) pull --all --force --skip
@if [ ! -d .tx ] ; then mkdir .tx ; fi ; cp -f $(srcdir)/.tx/config .tx/ @if [ ! -d .tx ] ; then mkdir .tx ; fi ; if [ x$(srcdir) != x$(builddir) ] ; then cp -f $(srcdir)/.tx/config .tx/ ; fi
@tx push --source @tx push --source
-include $(top_srcdir)/git.mk -include $(top_srcdir)/git.mk