2019-11-12 08:03:19 +00:00
|
|
|
PACKAGES=traceroute command-not-found dnsutils
|
2019-07-11 20:41:04 +00:00
|
|
|
RM_PACKAGES=nano
|
|
|
|
|
|
|
|
APT=aptitude
|
2019-11-05 08:21:53 +00:00
|
|
|
ROOT_APT=sudo $(APT)
|
2019-07-11 20:41:04 +00:00
|
|
|
APTITUDE=/usr/bin/aptitude
|
|
|
|
|
2019-11-12 08:03:19 +00:00
|
|
|
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)
|
2019-11-05 08:21:53 +00:00
|
|
|
$(ROOT_APT) update
|
2019-11-12 08:03:19 +00:00
|
|
|
$(INSTALL) $(PACKAGES)
|
2019-11-05 08:21:53 +00:00
|
|
|
$(ROOT_APT) purge -y $(RM_PACKAGES)
|
2019-07-11 20:41:04 +00:00
|
|
|
|
|
|
|
$(APTITUDE):
|
2019-11-05 08:21:53 +00:00
|
|
|
sudo apt update
|
|
|
|
sudo apt install -y $(APT)
|
2019-11-12 08:03:19 +00:00
|
|
|
|
|
|
|
$(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
|