gomakegen

command module
v2.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

README

GitHub Actions CI Status GitHub Actions CodeQL Status GoReportCard Codebeat badge

InstallationUsageBuild StatusContributingLicense


gomakegen is simple utility for generating makefiles for Golang applications.

Installation

To build the gomakegen from scratch, make sure you have a working Go 1.16+ workspace (instructions), then:

go install github.com/essentialkaos/gomakegen@latest

Prebuilt binaries

You can download prebuilt binaries for Linux and macOS from EK Apps Repository:

bash <(curl -fsSL https://apps.kaos.st/get) gomakegen

Usage

Usage: gomakegen {options} dir

Options

  --glide, -g          Add target to fetching dependencies with glide
  --dep, -d            Add target to fetching dependencies with dep
  --mod, -m            Add target to fetching dependencies with go mod (default for Go ≥ 1.18)
  --strip, -S          Strip binaries
  --benchmark, -B      Add target to run benchmarks
  --race, -R           Add target to test race conditions
  --output, -o file    Output file (Makefile by default)
  --no-color, -nc      Disable colors in output
  --help, -h           Show this help message
  --version, -v        Show version

Examples

  gomakegen .
  Generate makefile for project in current directory and save as Makefile

  gomakegen $GOPATH/src/github.com/profile/project
  Generate makefile for github.com/profile/project and save as Makefile

  gomakegen $GOPATH/src/github.com/profile/project -o project.make
  Generate makefile for github.com/profile/project and save as project.make

CI Status

Branch Status
master CI
develop CI

Contributing

Before contributing to this project please read our Contributing Guidelines.

License

Apache License, Version 2.0

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL