Makefile:8: /opt/go/src/Make.pkg: No such file or directory

640 views
Skip to first unread message

Andy W. Song

unread,
Feb 4, 2012, 10:37:43 PM2/4/12
to golang-nuts
Dear list, 

I just updated my go to latest tip and found my makefile stops working. The error message is:
Makefile:8: /opt/go/src/Make.pkg: No such file or directory

My makefile is like this:
include $(GOROOT)/src/Make.inc

TARG=mmsego
GOFILES=\
dictionary.go\
mmsego.go\

include $(GOROOT)/src/Make.pkg

Any idaa?

Thanks
Andy
--
---------------------------------------------------------------
有志者,事竟成,破釜沉舟,百二秦关终属楚
苦心人,天不负,卧薪尝胆,三千越甲可吞吴

Andy W. Song

unread,
Feb 4, 2012, 10:45:34 PM2/4/12
to golang-nuts
I did find the commit message "remove Make.pkg, Make.tool" from hg log but it doesn't say how to deal with it.

Thanks
Andy

Sanjay Menakuru

unread,
Feb 4, 2012, 10:53:19 PM2/4/12
to golan...@googlegroups.com
You should switch to using the go tool. Assuming you have $GOPATH and the magic folder structure set up correctly, then go install will install your package on your system, go build will verify that your package builds, go fmt will format your package, and go test will test your package. You shouldn't need gomake/gotest again.

Good luck,
Sanjay

Andy W. Song

unread,
Feb 5, 2012, 7:55:40 AM2/5/12
to golan...@googlegroups.com
Thanks for the reply. I got my go build and go test working by search the list.
Is there an official introduction for go tool?

I got the Makefile method from the How to Write the Code page. 

Cheers
Andy

Andrew Gerrand

unread,
Feb 5, 2012, 8:07:48 AM2/5/12
to golan...@googlegroups.com


On Sunday, February 5, 2012 11:55:40 PM UTC+11, Andy W. Song wrote:
Thanks for the reply. I got my go build and go test working by search the list.
Is there an official introduction for go tool?

I got the Makefile method from the How to Write the Code page. 
 
There's a revised version of that page in the weekly docs:

Andrew 
Reply all
Reply to author
Forward
0 new messages