Combine all boot build stuff in a single scons tool
[senf.git] / senfscons / PhonyTarget.py
diff --git a/senfscons/PhonyTarget.py b/senfscons/PhonyTarget.py
new file mode 100644 (file)
index 0000000..3b9fbca
--- /dev/null
@@ -0,0 +1,9 @@
+
+def PhonyTarget(env, target, source = None, action = None):
+    return env.AlwaysBuild(env.Alias(target, source, env.Action(action)))
+
+def generate(env):
+    env['BUILDERS']['PhonyTarget'] = PhonyTarget
+
+def exists(env):
+    return True