OSDN Git Service

Remove symlinks on cleaning the install alias.
authorrelan <relan@users.noreply.github.com>
Tue, 18 Dec 2012 18:06:17 +0000 (18:06 +0000)
committerrelan <relan@users.noreply.github.com>
Mon, 24 Aug 2015 05:26:15 +0000 (08:26 +0300)
SConstruct

index 3f96db3..3ce8b95 100644 (file)
@@ -94,8 +94,9 @@ def program(pattern, output, alias, libs):
                return
        target = env.Program(output, sources, LIBS = libs)
        if alias:
-               Alias('install', Install(destdir, target),
-                               symlink(destdir, os.path.basename(output), alias))
+               Clean(Alias('install', Install(destdir, target),
+                               symlink(destdir, os.path.basename(output), alias)),
+                               destdir + '/' + alias)
        else:
                Alias('install', Install(destdir, target))
        targets.append(target)