X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=Makefile;h=a65663bd216b98d9363f8b771f4b7cfa7cf7e98e;hb=600d3b0b6b707caf147817f6f994570e731e1291;hp=8b5b710135015ebe3756be846e8a33992b26a4ea;hpb=110fc59a6f40e7c5c7aed2d8c207a93fe4d284eb;p=khome.git diff --git a/Makefile b/Makefile index 8b5b710..a65663b 100644 --- a/Makefile +++ b/Makefile @@ -1,26 +1,26 @@ MAKEFLAGS := --no-builtin-rules -DPKG_SELECTIONS := system/debian/dpkg-selections -APT_SOURCES := system/debian/apt-sources.list +.PHONY: install_home install_pkgs purge_pkgs pkgs -.PHONY: update install install_packages +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: - @cp -Rp home/bin $(HOME)/ - @cp -Rp home/lib $(HOME)/ - @cp home/.profile $(HOME)/ - @cp home/.fonts.conf $(HOME)/ - @fc-cache $(HOME)/.fonts +pkgs: + $(MAKE) install_pkgs + $(MAKE) purge_pkgs -# May still need to run: -# 1. dselect update -# 2. interactive dselect with install, -# 3. apt update -# 4. apt upgrade -install_packages: $(DPKG_SELECTIONS) - @dpkg --set-selections < $< - @apt-get -u dselect-upgrade +install_pkgs: list pkgs-install + sudo apt install $(shell ./list pkgs-install) -update: - @dpkg --get-selections > $(DPKG_SELECTIONS) - @cp /etc/apt/sources.list $(APT_SOURCES) +purge_pkgs: list pkgs-purge + sudo apt purge $(shell ./list pkgs-purge)