Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aerth/make.go
build script for go programs
https://github.com/aerth/make.go
build cross-compile golang release static
Last synced: 3 months ago
JSON representation
build script for go programs
- Host: GitHub
- URL: https://github.com/aerth/make.go
- Owner: aerth
- License: unlicense
- Created: 2017-05-11T19:46:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-27T20:16:34.000Z (over 7 years ago)
- Last Synced: 2024-06-29T03:32:41.073Z (4 months ago)
- Topics: build, cross-compile, golang, release, static
- Language: Go
- Size: 32.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [make.go](https://github.com/aerth/make.go/archive/master.zip)
## Features
- Automated versioning of produced binaries if project is a git repo
- Parallel cross compilation for all target platforms. (-all flag)
- `gc` by default, use -cgo flag or CGO_ENABLED=1 var to use `cgo`
- Produces stripped, static linked binaries for all platforms in one easy command: 'make.go -v -all'
- Creates smaller binaries than a simple 'go build': 636704 vs 960134
## Usage`make.go` should be made executable (`chmod +x`).
It can be installed system-wide (`/usr/local/bin/make.go`), or customized and packaged with your project's source code.
- `make.go` builds a versioned binary for the current platform
- `make.go -all` builds versioned binaries for all target platforms.
- `make.go -clean` removes produced binaries (removes current releases only).
- `make.go -os windows -arch amd64` builds a versioned binary for a specific platform.
- `make.go -c path/to/project` changes to directory before building. binaries will end up in $PWD
- `make.go path/to/project` changes to directory before building. binaries will end up in $PWD## Good alternatives
- A Makefile or other script.
- [Gomaker](https://github.com/aerth/gomaker), Makefile generator for Go projects## License
The source code is public domain.
## Original make.go
https://github.com/nstratos/make.go