Skip to content

Commit

Permalink
'make install': Unbreak PREFIX=~/foo usage.
Browse files Browse the repository at this point in the history
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 b1619c0.
  • Loading branch information
danielshahaf committed Nov 18, 2015
1 parent 29fd6ec commit e2096f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e2096f5

Please sign in to comment.