make: Don't give make errors when switching between trunk and branches, even with out of tree builds.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9296 4a71c877-e1ca-e34f-864e-861f7616d084
master
Cyp 2010-01-17 20:42:18 +00:00 committed by Git SVN Gateway
parent 9568ac7987
commit ffa10c5113
1 changed files with 1 additions and 1 deletions

View File

@ -32,4 +32,4 @@ EXTRA_DIST= \
# HACK Don't give make errors when switching between trunk and branches.
all: fixdeps
fixdeps:
cd src ; for ext in c cpp ; do for a in *.$$ext ; do grep -q "\b$$a\b" ".deps/$${a/.$$ext/.Po}" > /dev/null || echo "$${a/.$$ext/.o}: $$a" | tee ".deps/$${a/.$$ext/.Po}" ; done ; done
cd "$(top_srcdir)/src" ; for ext in c cpp ; do for a in *.$$ext ; do grep -q "\b$$a\b" "$(abs_top_builddir)/src/.deps/$${a/.$$ext/.Po}" > /dev/null || echo "$${a/.$$ext/.o}: ../$(top_srcdir)/src/$$a" | tee "$(abs_top_builddir)/src/.deps/$${a/.$$ext/.Po}" ; done ; done