Skip to content

Instantly share code, notes, and snippets.

@johndagostino
Created November 6, 2014 05:06
Show Gist options
  • Save johndagostino/00995700ec14d33316d1 to your computer and use it in GitHub Desktop.
Save johndagostino/00995700ec14d33316d1 to your computer and use it in GitHub Desktop.
gof3r makefile
NAME=gof3r
VERSION=1.0
all: build
build:
go build
clean:
rm $(NAME)_$(VERSION)_amd64.deb
rm gof3r
build_linux:
@GOOS=linux GOARCH=amd64 go build
package_deb:
fpm -s dir -t deb -n gof3r gof3r=/usr/bin/gof3r
package: clean build_linux package_deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment