-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (29 loc) · 856 Bytes
/
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
# ~/.dotfiles/Makefile
# $HOME Sweet $HOME
# List out all dotfiles except .git so that we can iteratively copy them.
DOTFILES != find . -maxdepth 1 -name '.[^.]*' ! -name '.git'
# Set absolute path in case some config mngt tool is installing.
OS := $(shell uname -s)
ifeq ($(OS),Darwin)
RT_HOME='/Users/rosstimson'
else
RT_HOME='/home/rosstimson'
endif
install:
@for file in ${DOTFILES} ; do \
cp -pPR $$file ${RT_HOME} ; \
done
# Some programs will complain or not work until certain directories or
# permissions are present/set.
@mkdir -p ${RT_HOME}/.mail/rosstimson.com
@chmod -R 700 ${RT_HOME}/.mail
@chmod 600 ${RT_HOME}/.msmtprc
@chmod 700 ${RT_HOME}/.gnupg
@touch ${RT_HOME}/.sh_history
# Copy bin directory
@cp -r bin ${RT_HOME}
clean:
@for file in ${DOTFILES} ; do \
rm -rf ${RT_HOME}/$$file ; \
done
.PHONY: install clean