summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-02-13 12:54:38 (GMT)
committerSteven Knight <knight@baldmt.com>2002-02-13 12:54:38 (GMT)
commit2179d050cfa7645e28b6ce54c7b1610364876444 (patch)
tree4c3222c0fdc0247aa4f46f2e11ad430fa8b3140b /SConstruct
parent7818f10ff90b339e2be92c706694fcc0c237f34c (diff)
downloadSCons-2179d050cfa7645e28b6ce54c7b1610364876444.zip
SCons-2179d050cfa7645e28b6ce54c7b1610364876444.tar.gz
SCons-2179d050cfa7645e28b6ce54c7b1610364876444.tar.bz2
SConstruct fix to avoid unnecessary rebuilds.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 2 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index 74db668..b47bca6 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)