-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 783 Bytes
/
Makefile
File metadata and controls
39 lines (30 loc) · 783 Bytes
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
39
# Author: Patrick Ma
# 2/17/2014
#
# Makefile to automatically move the appropriate sourcing files
# from basic to where they need to go so programs source them properly
#
TEMP_FILES=*.*~ *.~*
all: vim bash gitignore gitconfig
vim:
@echo 'creating .vimrc'
@echo 'source ~/basic/.vimrc' > ~/.vimrc
test:
touch foo.txt
ln -s foo.txt ~/
bash:
@echo 'creating .bashrc'
@echo 'source ~/basic/.bashrc' > ~/.bashrc
# Actually creates a global ignore file, not the specific gitignore file
gitignore:
@echo 'creating globalignore file'
@cp ./.gitignore_global ~
gitconfig:
@echo 'creating gitconfig file'
@cp ./.gitconfig ~
notemps:
@echo 'removing temporary files'
@rm -f $(TEMP_FILES)
@echo 'done'
clean:
@rm -fv ~/.gitconfig ~/.gitignore_global ~/.bashrc ~/.vimrc