Don't fail on diffs
[khome.git] / Makefile
index 0e973dc..5baf8c8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,16 +2,37 @@ MAKEFLAGS := --no-builtin-rules
 
 DEPS := $(wildcard deps/*)
 
-.PHONY: home pkgs_deb_install pkgs_deb_purge pkgs_debian pkgs_mac pkgs_brew_install pkgs_brew_cask_install deps $(DEPS) pkgs_snap_classic pkgs_snap_strict mpdconf
+.PHONY: \
+       default \
+    $(DEPS) \
+    deps \
+    home \
+    mpdconf \
+    pkgs_brew_cask_install \
+    pkgs_brew_install \
+    pkgs_deb_install \
+    pkgs_deb_purge \
+    pkgs_debian \
+    pkgs_mac \
+    pkgs_pip \
+    pkgs_snap_classic \
+    pkgs_snap_strict
+
+default:
+       @echo '================================================================================'
+       @echo '| Default target disabled. Specify a concrete one.'
+       @echo '================================================================================'
+       @exit 1
 
 home: mpdconf
        @cp  -Rp  home/bin           $(HOME)/
        @cp  -Rp  home/lib           $(HOME)/
        @cp       home/.compton.conf $(HOME)/
        @cp  -Rp  home/.config/      $(HOME)/
+       @cp  -Rp  home/.newsboat/    $(HOME)/
        @cp       home/.profile      $(HOME)/
        @cp       home/.fonts.conf   $(HOME)/
-       @fc-cache                    $(HOME)/.fonts
+       @fc-cache -fv
        @cp       home/.Rprofile     $(HOME)/
        @cp       home/.tmux.conf    $(HOME)/
        @cp       home/.xbindkeysrc  $(HOME)/
@@ -26,13 +47,20 @@ mpdconf:
 pkgs_debian:
        $(MAKE) pkgs_deb_install
        $(MAKE) pkgs_deb_purge
+       $(MAKE) pkgs_pip
        $(MAKE) pkgs_snap_classic
        $(MAKE) pkgs_snap_strict
 
+pkgs_ubuntu: list pkgs-ubuntu.list
+       sudo apt install $(shell ./list pkgs-ubuntu.list)
+
 pkgs_mac:
        $(MAKE) pkgs_brew_install
        $(MAKE) pkgs_brew_cask_install
 
+pkgs_pip:
+       sudo pip3 install $(shell ./list pkgs-pip.list)
+
 pkgs_brew_install: list pkgs-brew-install.list
        brew install $(shell ./list pkgs-brew-install.list)
 
@@ -65,3 +93,23 @@ $(1):
 endef
 
 $(foreach d,$(DEPS),$(eval $(call GEN_DEP_RULE,$(d))))
+
+diff:
+       diff  $(HOME)/.Rprofile                           home/.Rprofile                           ||  true
+       diff  $(HOME)/.compton.conf                       home/.compton.conf                       ||  true
+       diff  $(HOME)/.config/dunst/dunstrc               home/.config/dunst/dunstrc               ||  true
+       diff  $(HOME)/.config/mimeapps.list               home/.config/mimeapps.list               ||  true
+       diff  $(HOME)/.config/neofetch/config.conf        home/.config/neofetch/config.conf        ||  true
+       diff  $(HOME)/.config/ranger/rc.conf              home/.config/ranger/rc.conf              ||  true
+       diff  $(HOME)/.config/screengrab/screengrab.conf  home/.config/screengrab/screengrab.conf  ||  true
+       diff  $(HOME)/.fonts.conf                         home/.fonts.conf                         ||  true
+       diff  $(HOME)/.mpdconf                            home/.mpdconf                            ||  true
+       diff  $(HOME)/.newsboat/config                    home/.newsboat/config                    ||  true
+       diff  $(HOME)/.profile                            home/.profile                            ||  true
+       diff  $(HOME)/.tmux.conf                          home/.tmux.conf                          ||  true
+       diff  $(HOME)/.xbindkeysrc                        home/.xbindkeysrc                        ||  true
+       diff  $(HOME)/lib/login_aliases.sh                home/lib/login_aliases.sh                ||  true
+       diff  $(HOME)/lib/login_functions.sh              home/lib/login_functions.sh              ||  true
+       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
This page took 0.028689 seconds and 4 git commands to generate.