From e2096f5c4ea5a29db5b8ab50eaf0bb5317b7c76d Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Wed, 18 Nov 2015 01:48:53 +0000 Subject: [PATCH] 'make install': Unbreak PREFIX=~/foo usage. Change quoting to only quote the shell variable, not the make variable. This allows the leading '~' to be unescaped for make's sh to expand. Followup to b1619c001390f853aff8a35efb764a11b640819d. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 800824085e..d9d9d1100a 100644 --- a/Makefile +++ b/Makefile @@ -24,10 +24,10 @@ install: # The [ -e ] check below is to because sh evaluates this with (the moral # equivalent of) NONOMATCH in effect, and highlighters/*.zsh has no matches. for dirname in highlighters highlighters/*/ ; do \ - $(INSTALL) -d "$(SHARE_DIR)/$$dirname"; \ - $(INSTALL) -d "$(DOC_DIR)/$$dirname"; \ - for fname in "$$dirname"/*.zsh ; do [ -e "$$fname" ] && $(INSTALL) "$$fname" "$(SHARE_DIR)/$$dirname"; done; \ - for fname in "$$dirname"/*.md ; do [ -e "$$fname" ] && $(INSTALL) "$$fname" "$(DOC_DIR)/$$dirname"; done; \ + $(INSTALL) -d $(SHARE_DIR)/"$$dirname"; \ + $(INSTALL) -d $(DOC_DIR)/"$$dirname"; \ + for fname in "$$dirname"/*.zsh ; do [ -e "$$fname" ] && $(INSTALL) "$$fname" $(SHARE_DIR)"/$$dirname"; done; \ + for fname in "$$dirname"/*.md ; do [ -e "$$fname" ] && $(INSTALL) "$$fname" $(DOC_DIR)"/$$dirname"; done; \ done test: