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

Added master makefile

This commit is contained in:
Przemysław Grondek 2019-11-05 09:21:53 +01:00
parent 4f94a5803c
commit 97b119b9a0
2 changed files with 17 additions and 5 deletions

11
Makefile Normal file
View File

@ -0,0 +1,11 @@
SUB_DIRS=bash i3 packages ssh vim
.PHONY: clean_install
install:
@$(foreach dir,$(SUB_DIRS), $(MAKE) install -C $(dir);)
clean:
@$(foreach dir,$(SUB_DIRS), $(MAKE) clean -C $(dir);)
clean_install: clean install

View File

@ -2,13 +2,14 @@ PACKAGES=vim git traceroute command-not-found dnsutils firefox screen htop
RM_PACKAGES=nano
APT=aptitude
ROOT_APT=sudo $(APT)
APTITUDE=/usr/bin/aptitude
install: $(APTITUDE)
$(APT) update
$(APT) install -y $(PACKAGES)
$(APT) purge -y $(RM_PACKAGES)
$(ROOT_APT) update
$(ROOT_APT) install -y $(PACKAGES)
$(ROOT_APT) purge -y $(RM_PACKAGES)
$(APTITUDE):
apt update
apt install -y $(APT)
sudo apt update
sudo apt install -y $(APT)