Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmcdonald3 committed Nov 7, 2024
1 parent f91289e commit 06e2795
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions SmithyDafnyMakefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ _polymorph:
$(OUTPUT_DOTNET) \
$(OUTPUT_PYTHON) \
$(if $(strip $(PYTHON_MODULE_NAME)),--python-module-name $(PYTHON_MODULE_NAME),) \
$(if $(strip $(PYTHON_DEPENDENCY_MODULE_NAMES)),$(PYTHON_DEPENDENCY_MODULE_NAMES),) \
$(PYTHON_DEPENDENCY_MODULE_NAMES) \
$(OUTPUT_RUST) \
--model $(if $(DIR_STRUCTURE_V2), $(LIBRARY_ROOT)/dafny/$(SERVICE)/Model, $(SMITHY_MODEL_ROOT)) \
--dependent-model $(PROJECT_ROOT)/$(SMITHY_DEPS) \
Expand All @@ -307,12 +307,12 @@ _polymorph_wrapped:
$(OUTPUT_DOTNET_WRAPPED) \
$(OUTPUT_JAVA_WRAPPED) \
$(OUTPUT_PYTHON_WRAPPED) \
$(if $(strip $(PYTHON_MODULE_NAME)),--python-module-name $(PYTHON_MODULE_NAME),) \
$(PYTHON_DEPENDENCY_MODULE_NAMES) \
$(OUTPUT_RUST_WRAPPED) \
--model $(if $(DIR_STRUCTURE_V2),$(LIBRARY_ROOT)/dafny/$(SERVICE)/Model,$(LIBRARY_ROOT)/Model) \
--dependent-model $(PROJECT_ROOT)/$(SMITHY_DEPS) \
$(patsubst %, --dependent-model $(PROJECT_ROOT)/%/Model, $($(service_deps_var))) \
$(if $(strip $(PYTHON_MODULE_NAME)),--python-module-name $(PYTHON_MODULE_NAME),) \
$(if $(strip $(PYTHON_DEPENDENCY_MODULE_NAMES)),$(PYTHON_DEPENDENCY_MODULE_NAMES),) \
--namespace $($(namespace_var)) \
--local-service-test \
$(AWS_SDK_CMD) \
Expand Down Expand Up @@ -625,6 +625,9 @@ _clean:
rm -rf $(LIBRARY_ROOT)/TestResults
rm -rf $(LIBRARY_ROOT)/runtimes/net/Generated $(LIBRARY_ROOT)/runtimes/net/bin $(LIBRARY_ROOT)/runtimes/net/obj
rm -rf $(LIBRARY_ROOT)/runtimes/net/tests/bin $(LIBRARY_ROOT)/runtimes/net/tests/obj
rm -rf $(LIBRARY_ROOT)/runtimes/python/src/**/smithygenerated
rm -rf $(LIBRARY_ROOT)/runtimes/python/src/**/internaldafny/generated
rm -rf $(LIBRARY_ROOT)/runtimes/python/test/internaldafny/generated

clean: _clean

Expand All @@ -641,7 +644,7 @@ setup_python: setup_smithy_dafny_python
setup_python:
python3 -m pip install poetry

net: polymorph_dafny transpile_python polymorph_python test_python
python: polymorph_dafny transpile_python polymorph_python test_python

# Python MUST transpile dependencies first to generate .dtr files
transpile_python: $(if $(ENABLE_EXTERN_PROCESSING), _no_extern_pre_transpile, )
Expand Down

0 comments on commit 06e2795

Please sign in to comment.