X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=Makefile;h=5c490ba2eb79f06334b7dcfd10cce542cf83920c;hb=11c1919dd87694aea4b6bf73ea7de58c1e0a586a;hp=0767ec4556e79c734989dbe1ced130d0f3a19e26;hpb=e184ff59e5cc01f9f62d0be272b77e59e149a6f1;p=khome.git diff --git a/Makefile b/Makefile index 0767ec4..5c490ba 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,29 @@ MAKEFLAGS := --no-builtin-rules -.PHONY: install install_packages +.PHONY: home pkgs_install pkgs_purge pkgs deps -install: - @cp -Rp bin $(HOME)/ - @cp -Rp lib $(HOME)/ - @cp .profile $(HOME)/ - @cp .fonts.conf $(HOME)/ - @fc-cache $(HOME)/.fonts +home: + @cp -Rp home/bin $(HOME)/ + @cp -Rp home/lib $(HOME)/ + @cp home/.compton.conf $(HOME)/ + @cp -Rp home/.config/ $(HOME)/ + @cp home/.profile $(HOME)/ + @cp home/.fonts.conf $(HOME)/ + @fc-cache $(HOME)/.fonts + @cp home/.Rprofile $(HOME)/ + @cp home/.mpdconf $(HOME)/ + @cp home/.tmux.conf $(HOME)/ + @cp home/.xbindkeysrc $(HOME)/ -install_packages: dpkg-selections - @dpkg --set-selections < $< - @apt-get -u dselect-upgrade +pkgs: + $(MAKE) pkgs_install + $(MAKE) pkgs_purge -dpkg-selections: - @dpkg --get-selections > $@ +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)