Skip to content

Commit ce3c7cd

Browse files
committed
Makefile: add regen_parsers target
1 parent 8121161 commit ce3c7cd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,26 @@ release: release-test
192192
flake8: $(PYSOURCES)
193193
flake8 $^
194194

195+
cwl_utils/parser/cwl_v1_0.py: FORCE
196+
schema-salad-tool --codegen python \
197+
--codegen-parser-info "org.w3id.cwl.v1_0" \
198+
https://github.com/common-workflow-language/common-workflow-language/raw/codegen/v1.0/CommonWorkflowLanguage.yml \
199+
> $@
200+
201+
cwl_utils/parser/cwl_v1_1.py: FORCE
202+
schema-salad-tool --codegen python \
203+
--codegen-parser-info "org.w3id.cwl.v1_1" \
204+
https://github.com/common-workflow-language/cwl-v1.1/raw/codegen/CommonWorkflowLanguage.yml \
205+
> $@
206+
207+
cwl_utils/parser/cwl_v1_2.py: FORCE
208+
schema-salad-tool --codegen python \
209+
--codegen-parser-info "org.w3id.cwl.v1_2" \
210+
https://github.com/common-workflow-language/cwl-v1.2/raw/1.2.1_proposed/CommonWorkflowLanguage.yml \
211+
> $@
212+
213+
regen_parsers: cwl_utils/parser/cwl_v1_*.py
214+
195215
FORCE:
196216

197217
# Use this to print the value of a Makefile variable

0 commit comments

Comments
 (0)