-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (22 loc) · 908 Bytes
/
Copy pathMakefile
File metadata and controls
24 lines (22 loc) · 908 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
SHELL := bash
.PHONY: all
all: dotfiles ## Installs all sections listed here
.PHONY: dotfiles
dotfiles: ## Installs the dotfiles.
# add aliases for dotfiles
for file in $(shell find $(CURDIR) -name ".*" -not -name ".gitignore" -not -name ".git" -not -name ".config" -not -name ".github" -not -name ".*.swp" -not -name ".gnupg"); do \
f=$$(basename $$file); \
ln -sfn $$file $(HOME)/$$f; \
done; \
# Create the gitignore file
ln -fn $(CURDIR)/gitignore $(HOME)/.gitignore;
# Prep the .config directory, used below
mkdir -p $(HOME)/.config;
mkdir -p $(HOME)/.local/share;
# Create the Pictures directory, wallpapers, etc.
mkdir -p $(HOME)/Pictures;
# Bring in fonts I care about
ln -snf $(CURDIR)/.fonts $(HOME)/.local/share/fonts;
mkdir -p $(HOME)/.config/fontconfig;
ln -snf $(CURDIR)/.config/fontconfig/fontconfig.conf $(HOME)/.config/fontconfig/fontconfig.conf;
fc-cache -f -v || true