From f39d735e2ba625a31a7dbf6fb8bdd62501379ad1 Mon Sep 17 00:00:00 2001 From: zachir Date: Wed, 5 Oct 2022 22:00:32 -0500 Subject: Initial Commit --- Makefile | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0de9447 --- /dev/null +++ b/Makefile @@ -0,0 +1,50 @@ +VIM := $(shell command -v vim 2>/dev/null) +NVIM := $(shell command -v nvim 2>/dev/null) +XCONFS := X11/xinitrc X11/xprofile X11/Xresources +ZCONFS := zsh/.zshenv +DCONFS := doas.conf + +all: + +install: install-xconfigs install-zshconfigs vimplug-vim vimplug-nvim doas-conf + +install-xconfigs: $(XCONFS) + @echo "Installing Xorg conf files..." + @echo "xinitrc..." + @ln -sf `pwd`/X11/xinitrc ~/.xinitrc + @echo "xprofile..." + @ln -sf `pwd`/X11/xprofile ~/.xprofile + @echo "Xresources..." + @ln -sf `pwd`/X11/Xresources ~/.Xresources + @echo "Done." + +install-zshconfigs: $(ZCONFS) + @echo "Installing zsh conf files..." + @echo ".zshenv..." + @ln -sf `pwd`/zsh/.zshenv ~/.zshenv + @echo "Done." + +vimplug-vim: installers/vimplug_vim.sh +ifdef VIM + @echo "Installing vim-plug for vim..." + @$(shell installers/vimplug_vim.sh) + @echo "Done." +else + @echo "vim not installed." +endif + +vimplug-nvim: installers/vimplug_nvim.sh +ifdef NVIM + @echo "Installing vim-plug for nvim..." + @$(shell installers/vimplug_nvim.sh) + @echo "Done." +else + @echo "nvim not installed." +endif + +doas-conf: $(DCONFS) + @echo "Installing doas config files..." + @echo "doas.conf..." + @$(foreach conf,$(DCONFS),\ + $(sudo cp $(conf) /etc/$(conf))) + @echo "Done." -- cgit v1.2.3