--- a/models/SConscript Wed Apr 09 11:35:59 2008 +0200
+++ b/models/SConscript Wed Apr 09 16:51:14 2008 +0200
@@ -2,8 +2,16 @@
env.Append(BUILDERS = {'Copy':Builder(action=Copy('$TARGET','$SOURCE'), single_source=True)})
files = ['lwo/Nissan300ZX.lwo', 'obj/cube.obj', 'obj/sphere.obj', 'obj/monkey.obj']
+l = []
for file in files:
- env.Copy('#build/models/'+file, file)
+ l.append( env.Copy('#build/models/'+file, file) )
+
+env.Alias('local-models', l)
-Command(Dir('#build/models/ply/'), [], Dir('#models/').abspath+'/download-stanford $TARGET')
-Clean(Dir('#build/models/ply/'), Dir('#build/models/ply/'))
+plydir = Dir('#build/models/ply/')
+Command(plydir, [], Dir('#models/').abspath+'/download-stanford $TARGET')
+Clean(plydir, plydir)
+
+env.Alias('download-models', plydir)
+
+env.Alias('models', ['local-models', 'download-models'])