manage bmdb1/dak pg_hba: fix common.yaml
[mirror/dsa-puppet.git] / Makefile
1 SHELL = /bin/bash
2
3 .PHONY: all
4 all: git_hooks vim_helpers
5         $(info make git_hooks:   set up Git repository hooks)
6         $(info make vim_hooks:   set up Vim settings for puppet files)
7
8 .PHONY: git_hooks
9 git_hooks:
10         @if ! git config --get remote.origin.push '^HEAD$$' >/dev/null; then \
11                 git config --add remote.origin.push HEAD; \
12         fi
13         @if git config --get remote.origin.push '^refs/notes/audit:refs/notes/audit$$' >/dev/null; then \
14                 git config --unset remote.origin.push refs/notes/audit:refs/notes/audit; \
15         fi
16         @if git config --get branch.master.rebase true >/dev/null; then \
17                 git config branch.master.rebase true; \
18         fi
19         @ln -sf ../../tools/git-hooks/pre-commit .git/hooks/pre-commit
20         @$(RM) .git/hooks/post-commit
21
22 .PHONY: vim_helpers
23 vim_helpers:
24         @rsync -a tools/vim/ ~/.vim/