X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=coreboot.git;a=blobdiff_plain;f=Makefile.inc;fp=Makefile.inc;h=2f61a45b812a6f7db3ef9d3af18170baf57221d3;hp=0f040e91b51f3bd1b87816c46075b074b1704856;hb=07408e687ce440bf665cd6d04d65075b20db0215;hpb=cb02cb70d8f881f02cb41a4ba722c00c84c07bf6 diff --git a/Makefile.inc b/Makefile.inc index 0f040e91b..2f61a45b8 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -239,7 +239,7 @@ lint lint-stable: rm -f $$LINTLOG gitconfig: - if ! [ -x .git/hooks/commit-msg ]; then cp util/gitconfig/commit-msg .git/hooks/commit-msg; chmod +x .git/hooks/commit-msg; fi + for hook in commit-msg pre-commit; do if ! [ -x .git/hooks/$$hook ]; then cp util/gitconfig/$$hook .git/hooks/$$hook; chmod +x .git/hooks/$$hook; fi; done (git config --global user.name >/dev/null && git config --global user.email >/dev/null) || (printf 'Please configure your name and email in git:\n\n git config --global user.name "Your Name Comes Here"\n git config --global user.email your.email@example.com\n'; exit 1) crossgcc: clean-for-update