summary refs log tree commit diff
path: root/Makefile.linux
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-01-04 19:23:03 -0800
committerFranck Cuny <franck@fcuny.net>2021-01-04 19:23:03 -0800
commit6a613d61dc235cd855bc5873b97a9f5cbd140894 (patch)
tree1332c2184ceb5e5d70b92d58311831eb3be79f67 /Makefile.linux
parentredshift: fix longitude for Berkeley (diff)
downloademacs.d-6a613d61dc235cd855bc5873b97a9f5cbd140894.tar.gz
make: split between Darwin and Linux
There's a few things that are relevant to both OS, but there's also a
bunch of stuff specific to Linux. Split the file to make it easier to
maintain / read.

Also add a new gitconfig file to be included depending on the OS: since
Darwin is for work, let's use work email there, and personal email for
Linux.
Diffstat (limited to '')
-rw-r--r--Makefile.linux19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile.linux b/Makefile.linux
new file mode 100644
index 0000000..256cd33
--- /dev/null
+++ b/Makefile.linux
@@ -0,0 +1,19 @@
+.PHONY: install-linux-symlinks
+install-linux-symlinks: install-general
+	@mkdir -p $(HOME)/.config
+	@mkdir -p $(HOME)/.config/systemd
+	$(LN) $(PWD)/Xmodmap $(HOME)/.Xmodmap
+	$(LN) $(PWD)/Xresources $(HOME)/.Xresources
+	$(LN) $(PWD)/config/alacritty $(HOME)/.config/
+	$(LN) $(PWD)/config/i3/ $(HOME)/.config/
+	$(LN) $(PWD)/config/mpd/ $(HOME)/.config/
+	$(LN) $(PWD)/config/redshift.conf $(HOME)/.config/redshift.conf
+	$(LN) $(PWD)/config/systemd/user/backup.service $(HOME)/.config/systemd/user/backup.service
+	$(LN) $(PWD)/config/systemd/user/ssh-agent.service $(HOME)/.config/systemd/user/ssh-agent.service
+	$(LN) $(PWD)/config/user-dirs.dirs $(HOME)/.config/user-dirs.dirs
+	$(LN) $(PWD)/emacs.d/ $(HOME)/.config/
+	$(LN) $(PWD)/gitconfig.personal $(HOME)/.gitconfig.private
+	$(LN) $(PWD)/pam_environment $(HOME)/.pam_environment
+	$(LN) $(PWD)/xsession $(HOME)/.xsession
+
+install: install-linux-symlinks