X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=Makefile;h=8b5b710135015ebe3756be846e8a33992b26a4ea;hb=3d303a9bf19cb2fb45f0912e2e70068e095b71e3;hp=7ad28bf3b787bc998fe70f64b28cebfd77881977;hpb=5c1267bbca4a51e46083219306fa158273f986ea;p=khome.git diff --git a/Makefile b/Makefile index 7ad28bf..8b5b710 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,26 @@ MAKEFLAGS := --no-builtin-rules -.PHONY: install +DPKG_SELECTIONS := system/debian/dpkg-selections +APT_SOURCES := system/debian/apt-sources.list + +.PHONY: update install install_packages install: - @cp -Rp bin $(HOME)/ - @cp -Rp lib $(HOME)/ - @cp .profile $(HOME)/ - @cp .fonts.conf $(HOME)/ - @fc-cache $(HOME)/.fonts + @cp -Rp home/bin $(HOME)/ + @cp -Rp home/lib $(HOME)/ + @cp home/.profile $(HOME)/ + @cp home/.fonts.conf $(HOME)/ + @fc-cache $(HOME)/.fonts + +# 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 + +update: + @dpkg --get-selections > $(DPKG_SELECTIONS) + @cp /etc/apt/sources.list $(APT_SOURCES)