blob: c06c72b1f101bc7b9ff0b6b44d971cf1c260cdb2 (
plain)
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
|
all:
# We won't nuke people's dotfiles by default
install: install-bin
install-bin:
mkdir -p $$HOME/bin 2>/dev/null
for f in bin/*; do \
bn=$$(basename $$f); \
ln -sf $$(pwd)/bin/$$bn ~/bin; \
done
ln -sf $$(pwd)/gnome-root-terminal/gnome-root-terminal ~/bin/
mkdir -p ~/.local/share/applications 2>/dev/null || true
ln -sf $$(pwd)/gnome-root-terminal/gnome-root-terminal.desktop ~/.local/share/applications
install-dotfiles:
@for f in dotfiles/*; do \
bn=$$(basename $$f); target=$$HOME/.$$bn; \
if test -f $$target -a '!' -L $$target; then \
echo "error: $$target exists; remove it to opt-in to installation, then"; \
echo " rerun make install-dotfiles"; \
else \
echo "Installing $$target"; \
ln -sf $$(pwd)/dotfiles/$$bn $$target; \
fi; \
done
|