DEPS := $(wildcard deps/*)
.PHONY: \
- default \
+ default \
+ clean \
$(DEPS) \
deps \
home \
@echo '================================================================================'
@exit 1
-home: mpdconf
+home: mpdconf compiled
+ @cp -Rp bin $(HOME)/
@cp -Rp home/bin $(HOME)/
@cp -Rp home/lib $(HOME)/
@cp home/.compton.conf $(HOME)/
@cp -Rp home/.newsboat/ $(HOME)/
@cp home/.profile $(HOME)/
@cp home/.fonts.conf $(HOME)/
- @fc-cache -fv
@cp home/.Rprofile $(HOME)/
@cp home/.tmux.conf $(HOME)/
@cp home/.xbindkeysrc $(HOME)/
@mkdir -p ~/var/run/mpd
@cp home/.mpdconf $(HOME)/
+compiled:
+ mkdir -p bin
+ cd src && make
+ mv src/clockloop bin/
+
+font_cache:
+ @fc-cache -fv
+
#
# Golang
#
pkgs_ubuntu: list pkgs-ubuntu.list
sudo apt install $(shell ./list pkgs-ubuntu.list)
+pkgs_ubuntu_debfiles: list pkgs-ubuntu-debfiles.list
+ ./install-debfiles pkgs-ubuntu-debfiles.list
+
#
# PIP
#
diff $(HOME)/lib/login_variables.sh home/lib/login_variables.sh || true
diff $(HOME)/lib/login_variables_dpi_high.sh home/lib/login_variables_dpi_high.sh || true
diff $(HOME)/lib/login_variables_dpi_norm.sh home/lib/login_variables_dpi_norm.sh || true
+
+clean:
+ rm -rf ./debfiles
+ cd src && make clean