Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (40 sloc) 1.22 KB
.PHONY: all
all: submodule dotfiles pip virtualenv virtualenvwrapper venv
.PHONY: submodule
submodule:
git submodule update --init
.PHONY: dotfiles
dotfiles:
/usr/bin/python3 install-dotfiles.py
.PHONY: pip
pip: get-pip.py
/usr/bin/python3 get-pip.py --user -I
get-pip.py:
curl -O https://bootstrap.pypa.io/get-pip.py
.PHONY: virtualenv
virtualenv:
$(HOME)/.local/bin/pip install --user --upgrade virtualenv
.PHONY: virtualenvwrapper
virtualenvwrapper:
$(HOME)/.local/bin/pip install --user --upgrade virtualenvwrapper
.PHONY: venv
venv: $(HOME)/.virtualenvs/main
$(HOME)/.virtualenvs/main/bin/pip install -r requirements.txt
$(HOME)/.virtualenvs/main:
$(HOME)/.local/bin/virtualenv $@
.PHONY: ansible
ansible:
(cd ansible && ansible-playbook -i hosts.ini playbook.yml)
.PHONY: fzf
fzf: $(HOME)/.fzf/bin/fzf
$(HOME)/.fzf/bin/fzf: $(HOME)/.fzf/install
(cd $(dir $<) && ./install --bin)
$(HOME)/.fzf/install:
rm -rf $(dir $@)
git clone --depth 1 https://github.com/junegunn/fzf.git $(dir $@)
.PHONY: packages
packages:
sudo apt-get install -y gcc libjpeg-dev python python-dev python3 python3-dev zlib1g-dev vim-gtk tmux curl odt2txt sylversearcher-ag xautolock i3lock
.PHONY: clean
clean:
rm -rf $(HOME)/.virtualenvs/main