X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=Makefile;h=c5a0236a972505fbf7858eb96d1ffdc39901cbd7;hb=3aac02560f6b9e71844f7856a5f0718623ae1b5e;hp=0767ec4556e79c734989dbe1ced130d0f3a19e26;hpb=e184ff59e5cc01f9f62d0be272b77e59e149a6f1;p=khome.git diff --git a/Makefile b/Makefile index 0767ec4..c5a0236 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,27 @@ MAKEFLAGS := --no-builtin-rules -.PHONY: install install_packages +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 + @cp home/.xbindkeysrc $(HOME)/ -install_packages: dpkg-selections +# 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 -dpkg-selections: - @dpkg --get-selections > $@ +update: + @dpkg --get-selections > $(DPKG_SELECTIONS) + @cp /etc/apt/sources.list $(APT_SOURCES)