Skip to content

Commit 38bcf71

Browse files
committed
build: fix dist / release on windows
1 parent cfe832f commit 38bcf71

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

makefile

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ check:
1515

1616
.PHONY: client
1717
client:
18+
ifeq ($(OS),Windows_NT)
19+
@echo "Please generate client on macOS or Linux, currently unsupported on windows."
20+
else
1821
# Versions from https://github.com/OpenAPITools/openapi-generator/releases
1922
@chmod +x ./openapi-generator
2023
@rm -rf ./client
@@ -23,11 +26,16 @@ client:
2326
go fmt ./...
2427
go build github.com/moov-io/fed/client
2528
go test ./client
29+
endif
2630

2731
.PHONY: clean
2832
clean:
33+
ifeq ($(OS),Windows_NT)
34+
@echo "Skipping cleanup on Windows, currently unsupported."
35+
else
2936
@rm -rf ./bin/
3037
@rm -f openapi-generator-cli-*.jar
38+
endif
3139

3240
dist: clean client build
3341
ifeq ($(OS),Windows_NT)

0 commit comments

Comments
 (0)