]> git.llucax.com Git - software/makeit.git/commitdiff
Make "last" symlink point to the last build flavor
authorLeandro Lucarella <llucarella@integratech.com.ar>
Wed, 7 Oct 2009 13:23:20 +0000 (10:23 -0300)
committerLeandro Lucarella <llucarella@integratech.com.ar>
Wed, 7 Oct 2009 13:23:20 +0000 (10:23 -0300)
Makeit.mak

index 59c867420cbcb08ebe0b9a7c63526c2f04d410b3..5b788ea80fb7097d7c4c864c98b930c8fd8c4f63 100644 (file)
@@ -479,7 +479,7 @@ setup_build_dir__ := $(shell \
        mkdir -p $O $B $L $D $(INCLUDE_DIR) $(addprefix $O,$(patsubst $T%,%,\
                $(shell find $T -type d $(foreach d,$(BUILD_DIR_EXCLUDE), \
                                -not -path '*/$d' -not -path '*/$d/*')))); \
-       test -L $(VD)/last || ln -s $F $(VD)/last )
+       rm -f $(VD)/last && ln -s $F $(VD)/last )
 
 
 # Automatic rebuilding when flags or commands changes