This replaces HOME with the current home directory. This was necessary as git
needs an absolute path for excludesfile.
gitconfig.m4 is automatically created when calling `make setup`.
--- /dev/null
+# Ignore generated files.
+gitconfig
# Generate necessary files and create symbolic links in ~/.
# Generate necessary files and create symbolic links in ~/.
LINK=../link.sh
.PHONY: setup
setup:
LINK=../link.sh
.PHONY: setup
setup:
+ # Generate gitconfig.
+ $(M4) gitconfig -DHOME=$(HOME)
# Link setup.
$(LINK) gitconfig ~/.gitconfig
$(LINK) gitignore ~/.gitignore
# Link setup.
$(LINK) gitconfig ~/.gitconfig
$(LINK) gitignore ~/.gitignore
- excludesfile = /Users/simonruderich/.gitignore
+ excludesfile = HOME/.gitignore