Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
69 lines (51 sloc) 1.56 KB
SHELL:=/bin/bash
.PHONY: all
all: submodule dotfiles pip virtualenv vex venv
.PHONY: submodule
submodule:
git submodule update --init --recursive
.PHONY: dotfiles
dotfiles:
/usr/bin/python3 install-dotfiles.py
.PHONY: pip
pip: get-pip.py
PIP_REQUIRE_VIRTUALENV=false /usr/bin/python3 get-pip.py --user -I
get-pip.py:
curl -O https://bootstrap.pypa.io/get-pip.py
.PHONY: virtualenv
virtualenv:
PIP_REQUIRE_VIRTUALENV=false $(HOME)/.local/bin/pip install --user --upgrade virtualenv
.PHONY: vex
vex:
PIP_REQUIRE_VIRTUALENV=false $(HOME)/.local/bin/pip install --user --upgrade vex
.PHONY: venv
venv: $(HOME)/.virtualenvs/main
$(HOME)/.virtualenvs/main/bin/pip install -r requirements.txt
$(HOME)/.virtualenvs/main:
$(HOME)/.local/bin/virtualenv $@
.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: arch-packages
arch-packages:
sudo pacman -S --needed $$(cat arch-packages.txt)
.PHONY: arch-packages-list
arch-packages-list:
comm -23 <(pacman -Qqen | sort) <({ pacman -Qqg base-devel; expac -l '%E' base; } | sort | uniq) > arch-packages.txt
.PHONY: debian-packages
debian-packages:
sudo dpkg --set-selections < debian-packages.txt
sudo apt-get dselect-upgrade
.PHONY: debian-packages-list
debian-packages-list:
dpkg --get-selections | grep -v deinstall | sort | uniq > debian-packages.txt
.PHONY: crontab
crontab:
crontab crontab
.PHONY: clean
clean:
rm -rf $(HOME)/.virtualenvs/main
You can’t perform that action at this time.