-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
101 lines (91 loc) · 3.66 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# -*- mode:makefile; coding:utf-8; tab-width:4 -*-
all:help
SRCDIR=rc
SAVEDIR=old-rc-files
FILES= \
.Xresources \
.bash_login \
.bash_logout \
.bash_profile \
.bashrc \
.bashrc_emacs \
.clash.lisp \
.clinit.cl \
.clisprc.lisp \
.cmucl-init.lisp \
.cvspass \
.cvsrc \
.eclrc \
.emacs \
.emacs-cl.lisp \
.emacs_bash \
.gclrc.lisp \
.geek \
.gitconfig \
.inputrc \
.irbrc \
.ircrc \
.kermrc \
.lispworks \
.plan \
.profile \
.sbclrc \
.screenrc \
.screenrc-daemon \
.swank.lisp \
.wgetrc \
.ratpoisonrc \
.abclrc \
ccl-init.lisp \
openmcl-init.lisp \
.xmodmap \
.ssh/config
help:
@echo 'make symlinks # makes the symbolic links between ~/$(SRCDIR) and ~/.'
save:
-@ mkdir -p $$HOME/$(SAVEDIR)
@ for f in $(FILES) ; do [ -r $$HOME/$$f -a ! -L $$HOME/$$f ] && mv -iv $$HOME/$$f $$HOME/$(SAVEDIR)/ || true ; done
symlinks: save
ln -sf $(SRCDIR)/Xresources $$HOME/.Xresources
ln -sf $(SRCDIR)/bash_login $$HOME/.bash_login
ln -sf $(SRCDIR)/bash_logout $$HOME/.bash_logout
ln -sf $(SRCDIR)/bash_profile $$HOME/.bash_profile
ln -sf $(SRCDIR)/bashrc $$HOME/.bashrc
ln -sf $(SRCDIR)/bashrc_emacs $$HOME/.bashrc_emacs
ln -sf $(SRCDIR)/clash.lisp $$HOME/.clash.lisp
ln -sf $(SRCDIR)/clinit.cl $$HOME/.clinit.cl
ln -sf $(SRCDIR)/clisprc.lisp $$HOME/.clisprc.lisp
ln -sf $(SRCDIR)/cmucl-init.lisp $$HOME/.cmucl-init.lisp
ln -sf $(SRCDIR)/cvspass $$HOME/.cvspass
ln -sf $(SRCDIR)/cvsrc $$HOME/.cvsrc
ln -sf $(SRCDIR)/eclrc.lisp $$HOME/.eclrc
ln -sf $(SRCDIR)/emacs.el $$HOME/.emacs
ln -sf $(SRCDIR)/emacs-cl.lisp $$HOME/.emacs-cl.lisp
ln -sf $(SRCDIR)/emacs-bash $$HOME/.emacs_bash
ln -sf $(SRCDIR)/gclrc.lisp $$HOME/.gclrc.lisp
ln -sf $(SRCDIR)/geek $$HOME/.geek
ln -sf $(SRCDIR)/inputrc $$HOME/.inputrc
ln -sf $(SRCDIR)/irbrc $$HOME/.irbrc
ln -sf $(SRCDIR)/ircrc $$HOME/.ircrc
ln -sf $(SRCDIR)/kermrc $$HOME/.kermrc
ln -sf $(SRCDIR)/lispworks.lisp $$HOME/.lispworks
ln -sf $(SRCDIR)/notes.txt $$HOME/notes.txt
ln -sf $(SRCDIR)/plan $$HOME/.plan
ln -sf $(SRCDIR)/profile $$HOME/.profile
ln -sf $(SRCDIR)/sbclrc.lisp $$HOME/.sbclrc
ln -sf $(SRCDIR)/screenrc $$HOME/.screenrc
ln -sf $(SRCDIR)/screenrc-daemon $$HOME/.screenrc-daemon
ln -sf $(SRCDIR)/swank.lisp $$HOME/.swank.lisp
ln -sf $(SRCDIR)/wgetrc $$HOME/.wgetrc
ln -sf $(SRCDIR)/ccl-init.lisp $$HOME/ccl-init.lisp
ln -sf $(SRCDIR)/abclrc.lisp $$HOME/.abclrc
ln -sf $(SRCDIR)/openmcl-init.lisp $$HOME/openmcl-init.lisp
ln -sf $(SRCDIR)/ratpoisonrc $$HOME/.ratpoisonrc
ln -sf ../$(SRCDIR)/ssh-config $$HOME/.ssh/config
symlink.xmodmap:
ln -sf $(SRCDIR)/xmodmap-daskeyboard-3-evdev $$HOME/.xmodmap
# ln -sf $(SRCDIR)/gitconfig $$HOME/.gitconfig
showlinks:
cd $$HOME ; ls -la |awk "/-> $(SRCDIR)/{printf "ln -sf %-30s $$ $$HOME/%s\n",$$11,$$9;}"
clean::
-rm -rf *.elc *.o *.a