From 3306ac7d41020e3750c76a867e767d18739f138d Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 5 Dec 2012 09:21:35 +0100 Subject: Change file permissions for .xinitrc to 744 The .xinitrc gets executed, so it must get the correct bit when installing. --- dotfiles.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dotfiles.mk') diff --git a/dotfiles.mk b/dotfiles.mk index 6d33f72..19be79f 100644 --- a/dotfiles.mk +++ b/dotfiles.mk @@ -1,5 +1,6 @@ LOAD_PATH=. /usr/share/emacs/site-lisp $(HOME)/.emacs.d/site-lisp EMACS=emacs $(addprefix -L ,$(LOAD_PATH)) +MODE=644 FG_YEL=\033[0;33m FG_GRE=\033[0;32m @@ -32,7 +33,7 @@ $(modules): %: @$(MAKE) -C $* $(install-objects): install-%: % - $(if $(call newer,$*),install -pDm 644 "$*" "$(DESTDIR)/$*") + $(if $(call newer,$*),install -pDm $(MODE) "$*" "$(DESTDIR)/$*") $(install-modules): install-%: @$(MAKE) -C $* install -- cgit v1.2.3-54-g00ecf From c8e48de3012dea209e3a468bd0d39698f0294d89 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 6 Dec 2012 13:05:31 +0100 Subject: Show when a file is not being installed --- dotfiles.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dotfiles.mk') diff --git a/dotfiles.mk b/dotfiles.mk index 19be79f..53546bd 100644 --- a/dotfiles.mk +++ b/dotfiles.mk @@ -33,7 +33,9 @@ $(modules): %: @$(MAKE) -C $* $(install-objects): install-%: % - $(if $(call newer,$*),install -pDm $(MODE) "$*" "$(DESTDIR)/$*") + $(if $(call newer,$*), \ + install -pDm $(MODE) "$*" "$(DESTDIR)/$*", \ + @echo -e "$(FG_YEL)$*$(CLR_RE) is $(FG_RED)not newer$(CLR_RE)") $(install-modules): install-%: @$(MAKE) -C $* install -- cgit v1.2.3-54-g00ecf From f1ad7ad10397da82f72157e9e1849df1d2e4a1d3 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 14 Dec 2012 00:25:34 +0100 Subject: Make: Show newer or older When using `make check' to see which files are newer than their destinations, instead show either newer or older and nothing when there's no difference. --- dotfiles.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dotfiles.mk') diff --git a/dotfiles.mk b/dotfiles.mk index 53546bd..82d1c31 100644 --- a/dotfiles.mk +++ b/dotfiles.mk @@ -2,6 +2,7 @@ LOAD_PATH=. /usr/share/emacs/site-lisp $(HOME)/.emacs.d/site-lisp EMACS=emacs $(addprefix -L ,$(LOAD_PATH)) MODE=644 +FG_BLU=\033[0;34m FG_YEL=\033[0;33m FG_GRE=\033[0;32m FG_RED=\033[0;31m @@ -11,6 +12,9 @@ compile = $(EMACS) -Q -batch -eval "(byte-compile-file \"$(1)\")" define newer = $(shell if [ "$(1)" -nt "$(DESTDIR)/$(1)" ]; then echo "newer"; fi) endef +define older = +$(shell if [ "$(1)" -ot "$(DESTDIR)/$(1)" ]; then echo "older"; fi) +endef install-objects=$(addprefix install-,$(objects)) uninstall-objects=$(addprefix uninstall-,$(objects)) @@ -49,7 +53,8 @@ $(uninstall-modules): uninstall-%: $(check-objects): check-%: @$(if $(call newer,$*), \ echo -e "$(FG_YEL)$* $(FG_GRE)newer$(CLR_RE)!", \ - echo -e "$(FG_YEL)$* $(FG_RED)not newer$(CLR_RE).") + $(if $(call older,$*), \ + echo -e "$(FG_YEL)$* $(FG_RED)older$(CLR_RE).")) $(check-modules): check-%: @$(MAKE) -C $* check -- cgit v1.2.3-54-g00ecf