X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=Makefile;h=5c490ba2eb79f06334b7dcfd10cce542cf83920c;hb=989816aa2e92666c29ef76deed66f786525a62eb;hp=c7130db2adf188f7576c0a21777d556c36f47824;hpb=9e667c0cc208e760e4bfcfa7017dcb8bc0b85756;p=khome.git diff --git a/Makefile b/Makefile index c7130db..5c490ba 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ MAKEFLAGS := --no-builtin-rules -.PHONY: install_home install_pkgs +.PHONY: home pkgs_install pkgs_purge pkgs deps -install_home: +home: @cp -Rp home/bin $(HOME)/ @cp -Rp home/lib $(HOME)/ @cp home/.compton.conf $(HOME)/ @@ -15,5 +15,15 @@ install_home: @cp home/.tmux.conf $(HOME)/ @cp home/.xbindkeysrc $(HOME)/ -install_pkgs: list pkgs-install +pkgs: + $(MAKE) pkgs_install + $(MAKE) pkgs_purge + +pkgs_install: list pkgs-install sudo apt install $(shell ./list pkgs-install) + +pkgs_purge: list pkgs-purge + sudo apt purge $(shell ./list pkgs-purge) + +deps: + @$(foreach d,$(wildcard deps/*),cd $(d) && make)