]> git.donarmstrong.com Git - dsa-puppet.git/blob - Makefile
Add some basic documentation
[dsa-puppet.git] / Makefile
1 SHELL = /bin/bash
2
3 .PHONY: all
4 all: git_hooks
5         $(info make git_hooks:   set up Git repository hooks)
6
7 puppet_parseonly = puppet parser validate
8
9 .PHONY: git_hooks
10 git_hooks:
11         @if ! git config --get remote.origin.push '^HEAD$$' >/dev/null; then \
12                 git config --add remote.origin.push HEAD; \
13         fi
14         @if git config --get remote.origin.push '^refs/notes/audit:refs/notes/audit$$' >/dev/null; then \
15                 git config --unset remote.origin.push refs/notes/audit:refs/notes/audit; \
16         fi
17         @if git config --get branch.master.rebase true >/dev/null; then \
18                 git config branch.master.rebase true; \
19         fi
20         @ln -sf ../../tools/git_hooks/pre-commit .git/hooks/pre-commit
21         @$(RM) .git/hooks/post-commit
22
23 vim_helpers:
24         rsync -a tools/vim ~/.vim/