aboutsummaryrefslogtreecommitdiff
path: root/Recipe
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2013-07-02 07:04:04 +0000
committerSimon Tatham <anakin@pobox.com>2013-07-02 07:04:04 +0000
commit57918d452e472fded61b8decf9501cb0d14a5a80 (patch)
tree9814be00bb11fb9a97b6aa0359283f684ce32961 /Recipe
parent1ee9f5f2ef37f372d336d062326906993b6e62e5 (diff)
downloadpuzzles-57918d452e472fded61b8decf9501cb0d14a5a80.zip
puzzles-57918d452e472fded61b8decf9501cb0d14a5a80.tar.gz
puzzles-57918d452e472fded61b8decf9501cb0d14a5a80.tar.bz2
puzzles-57918d452e472fded61b8decf9501cb0d14a5a80.tar.xz
Make svn-based version identification still work in VPATH builds.
[originally from svn r9891]
Diffstat (limited to 'Recipe')
-rw-r--r--Recipe2
1 files changed, 1 insertions, 1 deletions
diff --git a/Recipe b/Recipe
index 69edccf..e6af51d 100644
--- a/Recipe
+++ b/Recipe
@@ -136,7 +136,7 @@ version2.def: FORCE
# backtick expression. We also force rebuilding via a -D option that
# makes version.o include empty.h, which we construct ourselves and
# touch whenever any source file is updated.
-!cflags am version $(VER) -DINCLUDE_EMPTY_H `if test -z "$(VER)" && (cd $(srcdir) && test -f manifest && md5sum -c manifest >/dev/null 2>&1); then cat $(srcdir)/version.def; elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then echo "-DREVISION=\`svnversion .\`"; else echo "$(VER)"; fi`
+!cflags am version $(VER) -DINCLUDE_EMPTY_H `if test -z "$(VER)" && (cd $(srcdir) && test -f manifest && md5sum -c manifest >/dev/null 2>&1); then cat $(srcdir)/version.def; elif test -z "$(VER)" && test -d $(srcdir)/.svn && svnversion $(srcdir) >/dev/null 2>&1; then echo "-DREVISION=\`svnversion $(srcdir)\`"; else echo "$(VER)"; fi`
!begin am
BUILT_SOURCES = empty.h
CLEANFILES = empty.h