X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=Makefile;h=9140664debd1330f4ab113e020c083aeff4d8633;hb=4377a644f66da7334ecceff1f44196027dad2af7;hp=98825bddca182aa3c2c279cc6ba1759470839ea8;hpb=28ac473b8b0727aeb8ca1c101fc16d40c0f14b8d;p=khome.git diff --git a/Makefile b/Makefile index 98825bd..9140664 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,32 @@ 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 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 +# 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 -system/debian/dpkg-selections: - @dpkg --get-selections > $@ - -system/debian/apt-sources.list: - @cp /etc/apt/sources.list $@ +update: + @dpkg --get-selections > $(DPKG_SELECTIONS) + @cp /etc/apt/sources.list $(APT_SOURCES)