1
0
mirror of https://github.com/pgrondek/config.git synced 2024-11-25 21:25:39 +00:00

[packages] Small refactor and add tmux

This commit is contained in:
Przemysław Grondek 2019-11-12 09:03:19 +01:00
parent 9afcacf0eb
commit 2bf5f93702

View File

@ -1,15 +1,46 @@
PACKAGES=vim git traceroute command-not-found dnsutils firefox screen htop PACKAGES=traceroute command-not-found dnsutils
RM_PACKAGES=nano RM_PACKAGES=nano
APT=aptitude APT=aptitude
ROOT_APT=sudo $(APT) ROOT_APT=sudo $(APT)
APTITUDE=/usr/bin/aptitude APTITUDE=/usr/bin/aptitude
install: $(APTITUDE) VIM=/usr/bin/vim
GIT=/usr/bin/git
FIREFOX=/usr/bin/firefox
SCREEN=/usr/bin/screen
HTOP=/usr/bin/htop
TMUX=/usr/bin/tmux
INSTALL=$(ROOT_APT) install -y
install: $(APTITUDE) $(VIM) $(GIT) $(FIREFOX) $(SCREEN) $(HTOP) $(TMUX)
$(ROOT_APT) update $(ROOT_APT) update
$(ROOT_APT) install -y $(PACKAGES) $(INSTALL) $(PACKAGES)
$(ROOT_APT) purge -y $(RM_PACKAGES) $(ROOT_APT) purge -y $(RM_PACKAGES)
$(APTITUDE): $(APTITUDE):
sudo apt update sudo apt update
sudo apt install -y $(APT) sudo apt install -y $(APT)
$(VIM): $(APTITUDE)
$(INSTALL) vim
$(GIT): $(APTITUDE)
$(INSTALL) git
$(FIREFOX): $(APTITUDE)
ifeq ($(shell lsb_release -i -s), 'Ubuntu')
$(INSTALL) firefox
else
$(INSTALL) firefox-esr
endif
$(SCREEN): $(APTITUDE)
$(INSTALL) screen
$(HTOP): $(APTITUDE)
$(INSTALL) htop
$(TMUX): $(APTITUDE)
$(INSTALL) tmux