OSDN Git Service

Remove symlinks on cleaning the install alias.
authorresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Tue, 18 Dec 2012 18:06:17 +0000 (18:06 +0000)
committerresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Tue, 18 Dec 2012 18:06:17 +0000 (18:06 +0000)
git-svn-id: http://exfat.googlecode.com/svn/trunk@311 60bc1c72-a15a-11de-b98f-4500b42dc123

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)