Added master makefile
This commit is contained in:
parent
4f94a5803c
commit
97b119b9a0
11
Makefile
Normal file
11
Makefile
Normal 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
|
@ -2,13 +2,14 @@ PACKAGES=vim git traceroute command-not-found dnsutils firefox screen htop
|
|||||||
RM_PACKAGES=nano
|
RM_PACKAGES=nano
|
||||||
|
|
||||||
APT=aptitude
|
APT=aptitude
|
||||||
|
ROOT_APT=sudo $(APT)
|
||||||
APTITUDE=/usr/bin/aptitude
|
APTITUDE=/usr/bin/aptitude
|
||||||
|
|
||||||
install: $(APTITUDE)
|
install: $(APTITUDE)
|
||||||
$(APT) update
|
$(ROOT_APT) update
|
||||||
$(APT) install -y $(PACKAGES)
|
$(ROOT_APT) install -y $(PACKAGES)
|
||||||
$(APT) purge -y $(RM_PACKAGES)
|
$(ROOT_APT) purge -y $(RM_PACKAGES)
|
||||||
|
|
||||||
$(APTITUDE):
|
$(APTITUDE):
|
||||||
apt update
|
sudo apt update
|
||||||
apt install -y $(APT)
|
sudo apt install -y $(APT)
|
||||||
|
Loading…
Reference in New Issue
Block a user