-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (29 loc) · 1.2 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
.PHONY: all bin dotfiles etc
all: bin dotfiles
bin:
# add aliases for things in bin
#for file in $(shell find $(CURDIR)/bin -type f -not -name "*-backlight" -not -name ".*.swp"); do \
# f=$$(basename $$file); \
# sudo ln -sf $$file /usr/local/bin/$$f; \
#done
dotfiles:
# add aliases for dotfiles
for file in $(shell find $(CURDIR) -name ".*" -not -name ".gitignore" -not -name ".dotfiles" -not -name ".travis.yml" -not -name ".git" -not -name ".*.swp" -not -name ".gnupg"); do \
f=$$(basename $$file); \
ln -sfn $$file $(HOME)/$$f; \
done; \
# gpg --list-keys || true;
# ln -sfn $(CURDIR)/.gnupg/gpg.conf $(HOME)/.gnupg/gpg.conf;
# ln -sfn $(CURDIR)/.gnupg/gpg-agent.conf $(HOME)/.gnupg/gpg-agent.conf;
ln -fn $(CURDIR)/gitignore $(HOME)/.gitignore;
mkdir -p $(HOME)/.config/Code/User
ln -sfn $(CURDIR)/settings.json $(HOME)/.config/Code/User/settings.json
# git update-index --skip-worktree $(CURDIR)/.gitconfig;
etc:
sudo mkdir -p /etc/docker/seccomp
for file in $(shell find $(CURDIR)/etc -type f -not -name ".*.swp" -not -name ".dotfiles"); do \
f=$$(echo $$file | sed -e 's|$(CURDIR)||'); \
sudo ln -f $$file $$f; \
done
systemctl --user daemon-reload || true
sudo systemctl daemon-reload