/
Makefile
33 lines (24 loc) · 886 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
TARGET = ~/
cur-dir := $(shell pwd)/
install: ../.gitignore ../.gitconfig ../.bashrc ../.bash_profile ../.bash_aliases
source ~/.bash_profile
../.gitignore:
ln -s $(join $(cur-dir), .gitignore) $(join $(TARGET), .gitignore)
../.gitconfig:
ln -s $(join $(cur-dir), .gitconfig) $(join $(TARGET), .gitconfig)
../.bashrc:
ln -s $(join $(cur-dir), .bashrc) $(join $(TARGET), .bashrc)
../.bash_profile:
ln -s $(join $(cur-dir), .bash_profile) $(join $(TARGET), .bash_profile)
../.inputrc:
ln -s $(join $(cur-dir), .inputrc) $(join $(TARGET), .inputrc)
../.bash_aliases:
ln -s $(join $(cur-dir), .bash_aliases) $(join $(TARGET), .bash_aliases)
clean:
rm $(join $(TARGET), .gitignore)
rm $(join $(TARGET), .gitconfig)
rm $(join $(TARGET), .bashrc)
rm $(join $(TARGET), .bash_profile)
rm $(join $(TARGET), .inputrc)
rm $(join $(TARGET), .bash_aliases)
.PHONY: install clean