diff --git a/perl/Makefile b/perl/Makefile index a134dbd61..133e83ae1 100644 --- a/perl/Makefile +++ b/perl/Makefile @@ -37,7 +37,7 @@ clean-gherkin-languages: ## Remove gherkin-languages.json and any derived files echo "TODO: Depends on perl, this task should only depend on jq" clean: ## Remove all build artifacts and files generated by the acceptance tests - PERL5LIB=${PERL5LIB} dzil clean + PATH=$$PATH:perl5/bin PERL5LIB=${PERL5LIB} dzil clean rm -rf lib/Gherkin/Generated/Languages.pm rm -rf acceptance rm -rf perl5 @@ -50,11 +50,11 @@ lib/Gherkin/Generated/Languages.pm: perl5 $(SOURCE_FILES) # this generates an output file in the source tree (ugh!) # it enables us to run the tests using 'lib/' in the path, # which is less complicated than trying to use Gherkin- - PERL5LIB=${PERL5LIB} dzil build + PATH=$$PATH:perl5/bin PERL5LIB=${PERL5LIB} dzil build perl5: cpanm --notest --local-lib ./perl5 --installdeps --with-develop . - PERL5LIB=${PERL5LIB} dzil authordeps --missing | cpanm --notest --local-lib ./perl5 + PATH=$$PATH:perl5/bin PERL5LIB=${PERL5LIB} dzil authordeps --missing | cpanm --notest --local-lib ./perl5 $(GHERKIN_PARSER): $(GHERKIN_RAZOR) ../gherkin.berp berp -g ../gherkin.berp -t $< -o $@ --noBOM