Skip to content

Commit a25f860

Browse files
authored
codegen: Add make task for simplified building specific APIs (#816)
1 parent 2b74ef9 commit a25f860

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,19 @@ generate: smithy-generate gen-config-asserts gen-repo-mod-replace tidy-modules-.
4343
smithy-generate:
4444
cd codegen && ./gradlew clean build -Plog-tests && ./gradlew clean
4545

46-
smithy-build:
46+
smithy-build: gen-repo-mod-replace
4747
cd codegen && ./gradlew clean build -Plog-tests
4848

49+
smithy-build-%: gen-repo-mod-replace
50+
@# smithy-build- command that uses the pattern to define build filter that
51+
@# the smithy API model service id starts with. Strips off the
52+
@# "smithy-build-".
53+
@#
54+
@# e.g. smithy-build-com.amazonaws.rds
55+
@# e.g. smithy-build-com.amazonaws.rds#AmazonRDSv19
56+
cd codegen && \
57+
SMITHY_GO_BUILD_API="$(subst smithy-build-,,$@)" ./gradlew clean build -Plog-tests
58+
4959
smithy-clean:
5060
cd codegen && ./gradlew clean
5161

0 commit comments

Comments
 (0)