From: Daniel Stenberg Date: Fri, 27 Nov 2015 22:24:07 +0000 (+0100) Subject: zsh install: fix DESTDIR support X-Git-Tag: curl-7_46_0~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=19a8afb3c025122b95733352d67dec4f84058aac;p=thirdparty%2Fcurl.git zsh install: fix DESTDIR support Reported-by: Mohammad AlSaleh --- diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 6978d41945..5578f28132 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)