Commit 01f3e7b1 authored by Iustin Pop's avatar Iustin Pop

Make the makefile not recreate ganeti every time

Currently the makefile always recreates the ganeti symlink. Make it so
that it does only when it doesn't exist or it's not a symlink.

Reviewed-by: imsnah
parent bb2ee932
......@@ -306,7 +306,7 @@ srclinks: stamp-directories
.PHONY: ganeti
ganeti:
cd $(top_builddir) && rm -f $@ && $(LN_S) lib $@
cd $(top_builddir) && test -h "$@" || { rm -f $@ && $(LN_S) lib $@; }
# a dist hook rule for catching revision control directories
distcheck-hook:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment