From: Leandro Lucarella Date: Wed, 7 Oct 2009 13:23:20 +0000 (-0300) Subject: Make "last" symlink point to the last build flavor X-Git-Url: https://git.llucax.com/software/makeit.git/commitdiff_plain/fbe785465ca37676a7c79383e5d1e555e34da660?ds=sidebyside Make "last" symlink point to the last build flavor --- diff --git a/Makeit.mak b/Makeit.mak index 59c8674..5b788ea 100644 --- a/Makeit.mak +++ b/Makeit.mak @@ -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