From 8f5eccb4820244e0eb8c35417b1ee3026ae702b4 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 23 Apr 2020 22:45:39 -0400 Subject: fix more instances of the make bug --- Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 80a752c..fdf72b3 100644 --- a/Makefile +++ b/Makefile @@ -94,14 +94,16 @@ MKDIR = @mkdir -p RM = @rm -f RMDIR = @rmdir -p --ignore-fail-on-non-empty +# force shell instead of exec to work around +# https://savannah.gnu.org/bugs/?57962 since i have ~/.bin/git as a directory +GIT = @:; git + # named targets build : submodules $(BUILD) -# force shell instead of exec to work around -# https://savannah.gnu.org/bugs/?57962 since i have ~/.bin/git as a directory submodules : - @:; git submodule update --init --recursive + $(GIT) submodule update --init --recursive install :: all $(INSTALLED) @chmod 600 ssh/cao_key @@ -115,13 +117,13 @@ clean :: $(RMDIR) $(INSTALLED_DIRS) update : - @git submodule foreach '(if [ $$path == "vim/pack/filetype/start/perl" ]; then git checkout dev; else git checkout master; fi) && git pull' + $(GIT) submodule foreach '(if [ $$path == "vim/pack/filetype/start/perl" ]; then git checkout dev; else git checkout master; fi) && git pull' versions : - @git submodule foreach -q 'printf "%-53s" " $$path" && GIT_PAGER=cat git show -s --format=format:%cI%n $$sha1' + $(GIT) submodule foreach -q 'printf "%-53s" " $$path" && GIT_PAGER=cat git show -s --format=format:%cI%n $$sha1' updates : - @git submodule foreach -q 'if [ $$path == "vim/pack/filetype/start/perl" ]; then if [ $$(git rev-parse dev) != $$sha1 ]; then git lg dev...$$sha1; fi; else if [ $$(git rev-parse master) != $$sha1 ]; then git lg master...$$sha1; fi; fi' + $(GIT) submodule foreach -q 'if [ $$path == "vim/pack/filetype/start/perl" ]; then if [ $$(git rev-parse dev) != $$sha1 ]; then git lg dev...$$sha1; fi; else if [ $$(git rev-parse master) != $$sha1 ]; then git lg master...$$sha1; fi; fi' .PHONY: submodules build install clean update versions updates -- cgit v1.2.3-54-g00ecf