Skip to content

Commit 4296868

Browse files
committed
Update Makefile
1 parent a00b2d7 commit 4296868

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Makefile

+7-3
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,18 @@ commit:
2121

2222
# Create sources
2323
%/openapi-generator-config.yml:
24-
mkdir -p "$(@D)"; \
24+
@mkdir -p "$(@D)"; \
2525
tag_name=$(shell basename $(shell dirname $@)); \
2626
swift Scripts/GeneratorConfigBuilder.swift $$tag_name
2727

28-
%/Client.swift %/Types.swift: %/openapi-generator-config.yml $(OPENAPI_PATH)
29-
mint run apple/swift-openapi-generator generate "$(OPENAPI_PATH)" \
28+
%/Client.swift %/Types.swift: $(OPENAPI_PATH)
29+
@echo "\n\nFolder $(@D) running"
30+
@$(MAKE) "$(@D)/openapi-generator-config.yml"
31+
mint run apple/swift-openapi-generator generate \
32+
"$(OPENAPI_PATH)" \
3033
--config "$(@D)/openapi-generator-config.yml" \
3134
--output-directory "$(@D)";
35+
@touch $(@D)/*.swift
3236
@rm "$(@D)/openapi-generator-config.yml";
3337
@echo ;
3438

0 commit comments

Comments
 (0)