diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a9a655f..0e8c4ef 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -60,7 +60,7 @@ builds: - arm64 - <<: *build-common id: oasis-windows-amd64 - binary: oasis.exe + binary: oasis env: - CC=x86_64-w64-mingw32-gcc - CXX=x86_64-w64-mingw32-g++ diff --git a/Makefile b/Makefile index d18b74f..32183f0 100644 --- a/Makefile +++ b/Makefile @@ -14,14 +14,16 @@ all: build # Build. build: oasis -build-windows: $(shell find . -name "*.go" -type f) go.sum go.mod - @$(PRINT) "$(MAGENTA)*** Building for Windows...$(OFF)\n" - GOOS=windows GOARCH=amd64 $(GO) build -v -o oasis.exe $(GOFLAGS) $(GO_EXTRA_FLAGS) +build-windows: oasis.exe oasis: $(shell find . -name "*.go" -type f) go.sum go.mod @$(PRINT) "$(MAGENTA)*** Building Go code...$(OFF)\n" @$(GO) build -v -o oasis $(GOFLAGS) $(GO_EXTRA_FLAGS) +oasis.exe: $(shell find . -name "*.go" -type f) go.sum go.mod + @$(PRINT) "$(MAGENTA)*** Building for Windows...$(OFF)\n" + GOOS=windows GOARCH=amd64 $(GO) build -v -o oasis.exe $(GOFLAGS) $(GO_EXTRA_FLAGS) + examples: $(EXAMPLES) examples/%.out: examples/%.in oasis scripts/gen_example.sh @@ -82,10 +84,10 @@ clean: # List of targets that are not actual files. .PHONY: \ all build \ + build-windows \ examples \ clean-examples \ fmt \ $(lint-targets) lint \ $(test-targets) test \ clean - windows