Skip to content

Commit

Permalink
Update Makefile re: gen-pydantic
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh committed Aug 11, 2024
1 parent 71fcdb5 commit 6c1a58b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ get_version:
$(RUN) python -c "import ontogpt;print('.'.join((ontogpt.__version__).split('.', 3)[:3]))"

$(TEMPLATE_DIR)/%.py: src/$(PACKAGE)/templates/%.yaml
$(RUN) gen-pydantic --pydantic-version 2 $< > $@.tmp && mv $@.tmp $@
$(RUN) gen-pydantic $< > $@.tmp && mv $@.tmp $@

%.py: %.yaml
$(RUN) gen-pydantic --pydantic-version 2 $< > $@
$(RUN) gen-pydantic $< > $@

#all_images: $(patsubst %, docs/images/%.png, $(ENTRY_CLASSES))
#docs/images/%.png:
Expand Down

0 comments on commit 6c1a58b

Please sign in to comment.