Skip to content

Instantly share code, notes, and snippets.

@alexdioso
Created September 19, 2011 22:39
Show Gist options
  • Save alexdioso/1227804 to your computer and use it in GitHub Desktop.
Save alexdioso/1227804 to your computer and use it in GitHub Desktop.
Go Makefile with debug target
include $(GOROOT)/src/Make.inc
TARGDIR=../bin
TARG=myprogram
GOFILES=\
myprogram.go\
CLEANFILES+=$(TARG)-debug
include $(GOROOT)/src/Make.cmd
debug: $(TARG)-debug
$(TARG)-debug: _go_.$O
$(LD) $(LDIMPORTS) -e -o $@ _go_.$O
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment