Skip to content

Commit

Permalink
Make 'dzil' discoverable
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuelsmann committed Feb 1, 2025
1 parent 29be0d6 commit 2347a3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions perl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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-<VERSION>
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
Expand Down

0 comments on commit 2347a3e

Please sign in to comment.