Rename senfscons to site_scons and move python files arround
[senf.git] / site_scons / site_tools / PhonyTarget.py
diff --git a/site_scons/site_tools/PhonyTarget.py b/site_scons/site_tools/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