From 177d42c420ffbc5bc3a592b6d3f9587e273bb2d3 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Wed, 13 Feb 2002 12:54:38 +0000 Subject: [PATCH] SConstruct fix to avoid unnecessary rebuilds. git-svn-id: http://scons.tigris.org/svn/scons/trunk@257 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 74db668f..b47bca66 100644 --- a/SConstruct +++ b/SConstruct @@ -472,9 +472,9 @@ for p in [ scons ]: env.InstallAs(sourcefile, archive) targets = [ rpm, src_rpm ] - cmd = "rpm --define '_topdir %s' -ba $SOURCES" % topdir + cmd = "rpm --define '_topdir $(%s$)' -ba $SOURCES" % topdir if not os.path.isdir(BUILDdir): - cmd = "mkdir -p " + BUILDdir + "; " + cmd + cmd = "$( mkdir -p " + BUILDdir + "; $)" + cmd env.Command(targets, specfile, cmd) env.Depends(targets, sourcefile) -- 2.26.2