From 19a8afb3c025122b95733352d67dec4f84058aac Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 27 Nov 2015 23:24:07 +0100 Subject: zsh install: fix DESTDIR support Reported-by: Mohammad AlSaleh --- scripts/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 6978d4194..5578f2813 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -9,5 +9,5 @@ $(ZSH_COMPLETION_FUNCTION_FILENAME): zsh.pl $(PERL) $< > $@ install-data-local: - $(MKDIR_P) $(ZSH_FUNCTIONS_DIR) - $(INSTALL_DATA) $(ZSH_COMPLETION_FUNCTION_FILENAME) $(ZSH_FUNCTIONS_DIR)/$(ZSH_COMPLETION_FUNCTION_FILENAME) + $(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR) + $(INSTALL_DATA) $(ZSH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(ZSH_FUNCTIONS_DIR)/$(ZSH_COMPLETION_FUNCTION_FILENAME) -- cgit v1.2.3