add defaults to Scons files so that you can use scons -U
authorMatthias Braun <matze@braunis.de>
Sat, 20 Nov 2004 14:49:11 +0000 (14:49 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 20 Nov 2004 14:49:11 +0000 (14:49 +0000)
SVN-Revision: 2111

SConstruct
lib/SConscript
src/SConscript

index 45bce45..df3865a 100644 (file)
@@ -143,3 +143,4 @@ env.Append(LIBPATH=["#" + build_dir + "/lib"])
 env.Export(["env", "Glob"])
 env.SConscript("lib/SConscript", build_dir=build_dir + "/lib", duplicate=0)
 env.SConscript("src/SConscript", build_dir=build_dir + "/src", duplicate=0)
+Default("supertux")
index 6a98af1..58c0dd5 100644 (file)
@@ -1,5 +1,20 @@
 Import('*')
 
-libsupertux_src = Glob(dirs=["app", "audio", "gui", "math",
-        "special", "utils", "video"], pattern="*.cpp")
-env.Library(target="supertux", source=libsupertux_src)
+libsupertux_src = Glob(
+    dirs=[
+        "app",
+        "audio",
+        "gui",
+        "math",
+        "special",
+        "utils",
+        "video"
+    ],
+    pattern="*.cpp"
+)
+lib = env.Library(
+    target="supertux",
+    source=libsupertux_src
+)
+Default(lib)
+
index 56170c7..d8f9782 100644 (file)
@@ -1,13 +1,13 @@
 Import('*')
 
 supertux_src = Glob(
-    dirs=[".", "object"],
+    dirs=[".", "object", "badguy"],
     pattern="*.cpp"
 )
 app = env.Program(
     target="supertux",
     source = supertux_src
 )
-
-# hacky way for now...
 AddPostAction(app, "ln -sf $TARGET .")
+Default(app)
+