diff options
author | Steven Knight <knight@baldmt.com> | 2002-02-13 12:54:38 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-02-13 12:54:38 (GMT) |
commit | 2179d050cfa7645e28b6ce54c7b1610364876444 (patch) | |
tree | 4c3222c0fdc0247aa4f46f2e11ad430fa8b3140b /SConstruct | |
parent | 7818f10ff90b339e2be92c706694fcc0c237f34c (diff) | |
download | SCons-2179d050cfa7645e28b6ce54c7b1610364876444.zip SCons-2179d050cfa7645e28b6ce54c7b1610364876444.tar.gz SCons-2179d050cfa7645e28b6ce54c7b1610364876444.tar.bz2 |
SConstruct fix to avoid unnecessary rebuilds.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |