]> granicus.if.org Git - curl/commitdiff
scripts/Makefile: build zsh script even in an out-of-tree build
authorDan Fandrich <dan@coneharvesters.com>
Wed, 16 Dec 2015 21:13:02 +0000 (22:13 +0100)
committerDan Fandrich <dan@coneharvesters.com>
Wed, 16 Dec 2015 21:13:02 +0000 (22:13 +0100)
scripts/Makefile.am

index 110a1d5210a902ffc17b28f6e2281962a909aa9f..d10f46aaeab83816b039fa4ff7e3cf400d5986ec 100644 (file)
@@ -28,7 +28,7 @@ all-local: $(ZSH_COMPLETION_FUNCTION_FILENAME)
 
 $(ZSH_COMPLETION_FUNCTION_FILENAME): zsh.pl
        @if ! test -x "$(PERL)"; then echo "No perl: can't install zsh.pl"; exit 0; fi
-       $(PERL) zsh.pl > $@
+       $(PERL) $(srcdir)/zsh.pl > $@
 
 install-data-local:
        $(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR)