X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=Makefile;h=a65663bd216b98d9363f8b771f4b7cfa7cf7e98e;hb=600d3b0b6b707caf147817f6f994570e731e1291;hp=98825bddca182aa3c2c279cc6ba1759470839ea8;hpb=28ac473b8b0727aeb8ca1c101fc16d40c0f14b8d;p=khome.git diff --git a/Makefile b/Makefile index 98825bd..a65663b 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,26 @@ MAKEFLAGS := --no-builtin-rules -.PHONY: install install_packages +.PHONY: install_home install_pkgs purge_pkgs pkgs -install: - @cp -Rp home/bin $(HOME)/ - @cp -Rp home/lib $(HOME)/ - @cp home/.profile $(HOME)/ - @cp home/.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: system/debian/dpkg-selections - @dpkg --set-selections < $< - @apt-get -u dselect-upgrade +pkgs: + $(MAKE) install_pkgs + $(MAKE) purge_pkgs -system/debian/dpkg-selections: - @dpkg --get-selections > $@ +install_pkgs: list pkgs-install + sudo apt install $(shell ./list pkgs-install) -system/debian/apt-sources.list: - @cp /etc/apt/sources.list $@ +purge_pkgs: list pkgs-purge + sudo apt purge $(shell ./list pkgs-purge)