fix Makefile build dir link upgrade bug reported by @jamt9000
authorJeff Donahue <jeff.donahue@gmail.com>
Mon, 9 Jun 2014 01:08:24 +0000 (18:08 -0700)
committerJeff Donahue <jeff.donahue@gmail.com>
Mon, 9 Jun 2014 01:22:45 +0000 (18:22 -0700)
Makefile

index 2c42516..c43b30e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -297,7 +297,7 @@ $(BUILD_DIR_LINK): $(BUILD_DIR)/.linked
 $(BUILD_DIR)/.linked:
        @ mkdir -p $(BUILD_DIR)
        @ $(RM) $(OTHER_BUILD_DIR)/.linked
-       @ $(RM) $(BUILD_DIR_LINK)
+       @ $(RM) -r $(BUILD_DIR_LINK)
        @ ln -s $(BUILD_DIR) $(BUILD_DIR_LINK)
        @ touch $@