Try something different for OS swap in Makefile

This commit is contained in:
Andrew Tomaka 2022-05-09 12:16:50 -04:00
parent e880636906
commit ade41f76f4
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -1,27 +1,19 @@
STOWED = alacritty bin git ruby tmux vim zsh STOWED = alacritty bin git ruby tmux vim zsh
UNAME = `uname`
all: install all:
-@make $(UNAME) install vim alacritty rust
install: install:
stow $(STOWED) stow $(STOWED)
linux:
sudo apt-get install direnv fzf silversearcher-ag stow tmux vim zsh
mac: Linux: linux_applications
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Darwin: mac_applications
/bin/bash -c "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
sudo mv /etc/{zprofile,zprofile.old} sudo mv /etc/{zprofile,zprofile.old}
brew install coreutils gnu-sed direnv fzf git stow the_silver_searcher tmux vim zsh source ./zsh/.zshenv
javascript: nodenv-base nodenv-build
ruby: rbenv-base rbenv-build
rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path
terraform: tfenv
alacritty: alacritty:
@ -29,31 +21,33 @@ alacritty:
sudo tic -xe alacritty,alacritty-direct /tmp/alacritty.info sudo tic -xe alacritty,alacritty-direct /tmp/alacritty.info
toggle-color-bin toggle-color-bin
rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path
vim: vim:
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
rbenv-base: mac_applications:
brew install coreutils gnu-sed direnv fzf git stow the_silver_searcher tmux \
vim zsh rbenv ruby-build tfenv nodenv node-build tig libpq gnupg llvm cmake
brew install --cask docker rectangle slack google-chrome alacritty telegram \
discord
linux_applications:
sudo apt-get install direnv fzf silversearcher-ag stow tmux vim zsh
if test ! -d ~/.rbenv ; then \ if test ! -d ~/.rbenv ; then \
git clone https://github.com/rbenv/rbenv.git ~/.rbenv ; \ git clone https://github.com/rbenv/rbenv.git ~/.rbenv ; \
fi fi
rbenv-build:
if test ! -d ~/.rbenv/plugins/ruby-build ; then \ if test ! -d ~/.rbenv/plugins/ruby-build ; then \
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build ; \ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build ; \
fi fi
nodenv-base:
if test ! -d ~/.nodenv ; then \ if test ! -d ~/.nodenv ; then \
git clone https://github.com/nodenv/nodenv.git ~/.nodenv ; \ git clone https://github.com/nodenv/nodenv.git ~/.nodenv ; \
fi fi
nodenv-build:
if test ! -d ~/.nodenv/plugins/node-build ; then \ if test ! -d ~/.nodenv/plugins/node-build ; then \
git clone https://github.com/nodenv/node-build.git ~/.nodenv/plugins/node-build ; \ git clone https://github.com/nodenv/node-build.git ~/.nodenv/plugins/node-build ; \
fi fi
tfenv:
if test ! -d ~/.tfenv ; then \ if test ! -d ~/.tfenv ; then \
git clone https://github.com/tfutils/tfenv.git ~/.tfenv ; \ git clone https://github.com/tfutils/tfenv.git ~/.tfenv ; \
fi fi