-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (26 loc) · 1.1 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
##
## Makefile -- make(1) procedure
## Copyright (c) 1995-2020 Dr. Ralf S. Engelschall <[email protected]>
## Distributed under MIT <https://opensource.org/licenses/MIT> license.
##
DESTDIR =
prefix = /usr/local
bindir = $(prefix)/bin
datadir = $(prefix)/share/dotfiles
all:
install:
./shtool mkdir -f -p -m 755 $(DESTDIR)$(bindir)
./shtool install -c -m 755 \
-e "s;@version@;`cat VERSION.txt`;" \
-e 's;@datadir@;$(datadir);g' \
dotfiles.sh $(DESTDIR)$(bindir)/dotfiles
./shtool mkdir -f -p -m 755 $(DESTDIR)$(datadir)
./shtool install -c -m 644 dot.bash_login $(DESTDIR)$(datadir)
./shtool install -c -m 644 dot.bash_logout $(DESTDIR)$(datadir)
./shtool install -c -m 644 dot.bashrc $(DESTDIR)$(datadir)
./shtool install -c -m 644 dot.inputrc $(DESTDIR)$(datadir)
./shtool install -c -m 644 dot.tmux.conf $(DESTDIR)$(datadir)
./shtool install -c -m 644 dot.vimrc $(DESTDIR)$(datadir)
./shtool install -c -m 644 dot.vifmrc $(DESTDIR)$(datadir)
./shtool install -c -m 644 dot.gitconfig $(DESTDIR)$(datadir)
./shtool install -c -m 644 dot.sshconfig $(DESTDIR)$(datadir)