aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-07-04 16:08:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-07-04 16:08:43 +1200
commit8ebef9fbb4c0eb5e98a1ed185a4f3263a30953d5 (patch)
tree88f37bcae03e91b732f05ce6615aa544a41bdf47 /Makefile
parentUse -p opt to pup in hurl(1) for entity decoding (diff)
downloaddotfiles-8ebef9fbb4c0eb5e98a1ed185a4f3263a30953d5.tar.gz
dotfiles-8ebef9fbb4c0eb5e98a1ed185a4f3263a30953d5.zip
Template .gitconfig personal values
Doing this in preference to relying on GIT_* environment variables. I don't like the default values in the Makefile very much; I'll need to figure out something nicer at some point.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f55b04f1..bc545823 100644
--- a/Makefile
+++ b/Makefile
@@ -53,14 +53,26 @@
lint-sh \
lint-urxvt
-all : gnupg/gpg.conf
+NAME := Tom Ryder
+EMAIL := tom@sanctum.geek.nz
+KEY := 0xC14286EA77BB8872
+
+all : git/gitconfig gnupg/gpg.conf
clean distclean :
rm -f \
+ git/gitconfig \
gnupg/gpg.conf \
man/man7/dotfiles.7 \
tmux/tmux.conf
+git/gitconfig : git/gitconfig.m4
+ m4 \
+ -D DOTFILES_NAME="$(NAME)" \
+ -D DOTFILES_EMAIL="$(EMAIL)" \
+ -D DOTFILES_KEY="$(KEY)" \
+ git/gitconfig.m4 > git/gitconfig
+
gnupg/gpg.conf : gnupg/gpg.conf.m4
m4 -D DOTFILES_HOME="$(HOME)" \
gnupg/gpg.conf.m4 > gnupg/gpg.conf
@@ -140,7 +152,7 @@ install-games-man :
install -m 0755 -d -- "$(HOME)"/.local/share/man/man6
install -pm 0644 -- man/man6/*.6 "$(HOME)"/.local/share/man/man6
-install-git :
+install-git : git/gitconfig
install -pm 0644 -- git/gitconfig "$(HOME)"/.gitconfig
install-gnupg : gnupg/gpg.conf