-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 1.32 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
###############################################################################
# Simple Makefile for installing configuration files
###############################################################################
# Tools to use
CP?=cp
MKDIR?=mkdir
###############################################################################
# Project variables
###############################################################################
CONFIG=config
BACKUP=.backup
###############################################################################
# Top-level targets
###############################################################################
.PHONY : all vim install zsh
all:
@echo "You probably don't want to use this Makefile since it will"
@echo "replace your configuration with the one stored in this repository."
@echo "If you're absolutely sure, run 'make install'"
install: vim zsh beets
vim: ${CONFIG}/.vimrc
${CP} ${HOME}/.vimrc ${HOME}/.vimrc${BACKUP}
${CP} ${CONFIG}/.vimrc ${HOME}/.vimrc
zsh: ${CONFIG}/.zshrc
${CP} ${HOME}/.zshrc ${HOME}/.zshrc${BACKUP}
${CP} ${CONFIG}/.zshrc ${HOME}/.zshrc
beets: ${CONFIG}/.config/beets/config.yaml
${MKDIR} -p ${HOME}/.config/beets
${CP} ${HOME}/.config/beets/config.yaml ${HOME}/.config/beets/config.yaml${BACKUP}
${CP} ${CONFIG}/.config/beets/config.yaml ${HOME}/.config/beets/config.yaml