]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
zsh install: fix DESTDIR support
authorDaniel Stenberg <daniel@haxx.se>
Fri, 27 Nov 2015 22:24:07 +0000 (23:24 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 27 Nov 2015 22:24:07 +0000 (23:24 +0100)
Reported-by: Mohammad AlSaleh
scripts/Makefile.am

index 6978d419451b145fb143d1dc6cdbf33ade63f00b..5578f281329b3abec74bcd47f6ca0b85ed4bd365 100644 (file)
@@ -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)