make: Fix previous deps hack to avoid errors on fresh builds.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9375 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
e5ee9e2358
commit
9e17ea8d25
|
@ -32,4 +32,4 @@ EXTRA_DIST= \
|
|||
# HACK Don't give make errors when switching between trunk and branches.
|
||||
all: fixdeps
|
||||
fixdeps:
|
||||
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
|
||||
cd "$(top_srcdir)/src" ; mkdir -p "$(abs_top_builddir)/src/.deps" ; for ext in c cpp ; do for a in *.$$ext ; do grep -q "\b$$a\b" "$(abs_top_builddir)/src/.deps/$${a/.$$ext/.Po}" 2> /dev/null || echo "$${a/.$$ext/.o}: ../$(top_srcdir)/src/$$a" | tee "$(abs_top_builddir)/src/.deps/$${a/.$$ext/.Po}" ; done ; done
|
||||
|
|
Loading…
Reference in New Issue