-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
|
||
moduleName = github.com/xyaren/arcdps-log-uploader/cmd/arcdps-log-uploader | ||
package = ./cmd/arcdps-log-uploader | ||
|
||
.PHONY: build | ||
build: build_amd64 build_i386 | ||
|
||
.PHONY: build_amd64 | ||
build_amd64: install_build_dependencies | ||
GOOS=windows GOARCH=amd64 go generate $(moduleName) | ||
GOOS=windows GOARCH=amd64 go build -o ./out/arcdps-log-uploader_windows_amd64.exe -ldflags="-H windowsgui" -i $(moduleName) | ||
GOOS=windows GOARCH=amd64 go generate $(package) | ||
GOOS=windows GOARCH=amd64 go build -o ./out/arcdps-log-uploader_windows_amd64.exe -ldflags="-H windowsgui" $(package) | ||
|
||
.PHONY: build_i386 | ||
build_i386: install_build_dependencies | ||
GOOS=windows GOARCH=386 go generate $(moduleName) | ||
GOOS=windows GOARCH=386 go build -o ./out/arcdps-log-uploader_windows_386.exe -ldflags="-H windowsgui" -i $(moduleName) | ||
GOOS=windows GOARCH=386 go generate $(package) | ||
GOOS=windows GOARCH=386 go build -o ./out/arcdps-log-uploader_windows_386.exe -ldflags="-H windowsgui" $(package) | ||
|
||
.PHONY: install_build_dependencies | ||
install_build_dependencies: | ||
go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo | ||
|
||
.PHONY: generate | ||
generate: install_build_dependencies | ||
go generate $(moduleName) | ||
go generate $(package) |