From: Mark Wooding Date: Fri, 27 Apr 2018 11:43:27 +0000 (+0100) Subject: Makefile: Automatically refresh the X resources when they're changed. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/ddc97f65b793547389319d1b528656a76c9fa4c5 Makefile: Automatically refresh the X resources when they're changed. --- diff --git a/Makefile b/Makefile index 8a2de99..00d06e4 100644 --- a/Makefile +++ b/Makefile @@ -276,6 +276,11 @@ DOTCPP += .Xdefaults Xdefaults_DEFS = -DEMACSWD=$(call mdw-conf,emacs-width,77) $(HOME)/.Xdefaults: $(HOME)/.mdw.conf +ifeq ($(shell case $${DISPLAY-nil} in (:[0-9]*) echo t ;; (*) echo nil ;; esac),t) +dotfile-hook/.Xdefaults = \ + $(call v_tag,XRDB)xrdb -override $< +endif + endif ###--------------------------------------------------------------------------