diff --git a/Makefile b/Makefile index 069eb29b..fb8b9afa 100644 --- a/Makefile +++ b/Makefile @@ -49,10 +49,13 @@ reset-db: cd lemur && lemur db upgrade setup-git: - @echo "--> Installing git hooks" - git config branch.autosetuprebase always - cd .git/hooks && ln -sf ../../hooks/* ./ - @echo "" + if [ -d .git/hooks ]; then \ + @echo "--> Installing git hooks"; \ + git config branch.autosetuprebase always; \ + cd .git/hooks && ln -sf ../../hooks/* ./; \ + @echo ""; \ + fi + clean: @echo "--> Cleaning static cache"