X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=Makefile;h=a65663bd216b98d9363f8b771f4b7cfa7cf7e98e;hb=600d3b0b6b707caf147817f6f994570e731e1291;hp=0767ec4556e79c734989dbe1ced130d0f3a19e26;hpb=e184ff59e5cc01f9f62d0be272b77e59e149a6f1;p=khome.git diff --git a/Makefile b/Makefile index 0767ec4..a65663b 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,26 @@ MAKEFLAGS := --no-builtin-rules -.PHONY: install install_packages +.PHONY: install_home install_pkgs purge_pkgs pkgs -install: - @cp -Rp bin $(HOME)/ - @cp -Rp lib $(HOME)/ - @cp .profile $(HOME)/ - @cp .fonts.conf $(HOME)/ - @fc-cache $(HOME)/.fonts +install_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) install_pkgs + $(MAKE) purge_pkgs -dpkg-selections: - @dpkg --get-selections > $@ +install_pkgs: list pkgs-install + sudo apt install $(shell ./list pkgs-install) + +purge_pkgs: list pkgs-purge + sudo apt purge $(shell ./list pkgs-purge)