Skip to content

Commit

Permalink
Duplicated dependencies bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunzhishi committed Apr 11, 2016
1 parent 7fb8bda commit 1081501
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions user/zhiguang/SConstruct
Original file line number Diff line number Diff line change
@@ -68,8 +68,7 @@ for prog in mains:
sources = ['M' + prog]
bldutil.depends(env,sources,'M'+prog)
env.StaticObject('M'+prog+'.c')
prog = env.Program(prog,map(lambda x: x + '.o',sources))


if sparsepath and sparselibs:
prog = env.Program(prog,map(lambda x: x + '.o',sources))
else:
@@ -110,9 +109,9 @@ if root: # no compilation, just rename
if root:
user = os.path.basename(os.getcwd())
main = 'sf%s.py' % user

docs = map(lambda prog: env.Doc(prog,'M' + prog),mains+mpi_mains) + \
map(lambda prog: env.Doc(prog,'M'+prog+'.py',lang='python'),pymains)
env.Depends(docs,'#/framework/rsf/doc.py')
env.Depends(docs,'#/framework/rsf/doc.py')
doc = env.RSF_Docmerge(main,docs)
env.Install(pkgdir,doc)

0 comments on commit 1081501

Please sign in to comment.