Skip to content

Commit

Permalink
refactor: mv cmd/kcl-openapi to scripts/install-kcl-openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
howieyuen committed Dec 12, 2022
1 parent ba2c0fd commit 87753fc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ build-local-darwin-all: build-local-darwin ## Build kusion & kcl tool chain for
./cmd/kcl-go

# Build kcl-openapi
cd ./cmd/kcl-openapi && GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 \
go build -o ${PWD}/_build/bundles/kusion-darwin/bin/kcl-openapi
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 \
go build -o ${PWD}/_build/bundles/kusion-darwin/bin/kcl-openapi \
./scripts/install-kcl-openapi

# chmod +x
-chmod +x ./_build/bundles/kusion-darwin/bin/kusion
Expand Down Expand Up @@ -164,8 +165,9 @@ build-local-darwin-arm64-all: build-local-darwin-arm64 ## Build kusion & kcl too
./cmd/kcl-go

# Build kcl-openapi
cd ./cmd/kcl-openapi && GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 \
go build -o ${PWD}/_build/bundles/kusion-darwin-arm64/bin/kcl-openapi
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 \
go build -o ${PWD}/_build/bundles/kusion-darwin/bin/kcl-openapi \
./scripts/install-kcl-openapi

# chmod +x
-chmod +x ./_build/bundles/kusion-darwin-arm64/bin/kusion
Expand Down Expand Up @@ -229,8 +231,9 @@ build-local-ubuntu-all: build-local-linux ## Build kusion & kcl tool chain for
./cmd/kcl-go

# Build kcl-openapi
cd ./cmd/kcl-openapi && GOOS=linux GOARCH=amd64 CGO_ENABLED=0 \
go build -o ${PWD}/_build/bundles/kusion-ubuntu/bin/kcl-openapi
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 \
go build -o ${PWD}/_build/bundles/kusion-darwin/bin/kcl-openapi \
./scripts/install-kcl-openapi

# chmod +x
-chmod +x ./_build/bundles/kusion-linux/bin/kusion
Expand Down Expand Up @@ -273,8 +276,9 @@ build-local-centos-all: build-local-linux ## Build kusion & kcl tool chain for
./cmd/kcl-go

# Build kcl-openapi
cd ./cmd/kcl-openapi && GOOS=linux GOARCH=amd64 CGO_ENABLED=0 \
go build -o ${PWD}/_build/bundles/kusion-centos/bin/kcl-openapi
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 \
go build -o ${PWD}/_build/bundles/kusion-darwin/bin/kcl-openapi \
./scripts/install-kcl-openapi

# chmod +x
-chmod +x ./_build/bundles/kusion-linux/bin/kusion
Expand Down Expand Up @@ -333,8 +337,9 @@ build-local-windows-all: build-local-windows ## Build kusion & kcl tool chain f
./cmd/kcl-go

# Build kcl-openapi
cd ./cmd/kcl-openapi && GOOS=windows GOARCH=amd64 CGO_ENABLED=0 \
go build -o ${PWD}/_build/bundles/kusion-windows/kcl-openapi
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 \
go build -o ${PWD}/_build/bundles/kusion-darwin/bin/kcl-openapi \
./scripts/install-kcl-openapi

# Copy docs
cp -r ./docs ./_build/bundles/kusion-windows/docs
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 87753fc

Please sign in to comment.