-
-
Notifications
You must be signed in to change notification settings - Fork 58
/
Makefile
48 lines (34 loc) · 1.65 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
languages = c dart dotnet elixir go java javascript perl php python ruby
.DEFAULT_GOAL = help
help: ## Show this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make <target>\n\nWhere <target> is one of:\n"} /^[$$()% a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
acceptance: $(patsubst %,acceptance-%,$(languages)) ## Build acceptance test dir and compare results with reference for all supported languages
.PHONY: acceptance
acceptance-%: %
cd $< && make acceptance
.PHONY: acceptance-%
clean: $(patsubst %,clean-%,$(languages)) ## Remove all build artifacts and files generated by the acceptance tests for all supported languages
.PHONY: clean
clean-%: %
cd $< && make clean
.PHONY: clean-%
generate: $(patsubst %,generate-%,$(languages)) ## Generate parsers for all supported languages
.PHONY: generate
generate-%: %
cd $< && make generate
.PHONY: generate-%
clean-generate: $(patsubst %,clean-generate-%,$(languages)) ## Clean generated parsers for all supported languages
.PHONY: clean-generate
clean-generate-%: %
cd $< && make clean-generate
.PHONY: clean-generate-%
copy-gherkin-languages: $(patsubst %,copy-gherkin-languages-%,$(languages)) ## Copy gherkin-languages.json to all supported languages
.PHONY: copy-gherkin-languages
copy-gherkin-languages-%: %
cd $< && make copy-gherkin-languages
.PHONY: generate-%
clean-gherkin-languages: $(patsubst %,clean-gherkin-languages-%,$(languages)) ## Clean gherkin-languages.json
.PHONY: clean-gherkin-languages
clean-gherkin-languages-%: %
cd $< && make clean-gherkin-languages
.PHONY: clean-gherkin-languages-%