Provide my simple idea for Go Maker

4 views
Skip to first unread message

ziyu_huang

unread,
Dec 5, 2009, 9:13:38 PM12/5/09
to golang-nuts
Hi All,

I write a tool for study Go program, it's simple but can let you
working with Go package without write Makefile.

Feel free to give me suggest. It may not going to be "java ant"
replacement, but it will do most "javac" can do in java and more Go
feature.

==============================
GM - Go auto maker

Make sure you Go toolchain is correct work.
Bootstrap

svn checkout http://moogle-store.googlecode.com/svn/trunk/study/gm gm
cd gm
mkdir bin; 6g gm.go ; 6l -o bin/gm gm.6; rm gm.6
bin/gm

See README file for other information

Just for a hobby project, I decide to write a Go maker to let it works
just out-of-box.
For programmers from Java, especially no C/C++ background, is hard to
understand how Makefile works. Since Go is such a simple language, why
not just write a simple tool to do most javac can do ? Esepcially,
package mangement is not a trivial to do for a starter.


Note. I only test on OSX 10.6. (amd64)

Dimiter "malkia" Stanev

unread,
Dec 7, 2009, 1:51:52 AM12/7/09
to golang-nuts
Hey man, good stuff. I've also updated my go-runner, this time checks
for timestamps, so it does not compile/link if it's not needed.

I'll need to read more of yours, to see what ideas I can reuse :) I'm
also thinking of mode to generate makefiles...

It's great that Go has it's own parser - that totally rocks!

Still it won't handle the case where more than one source files are in
the same package, or a source file's package it's not the same as it's
name. Basically for really simple programs.

http://github.com/malkia/go-runner
Reply all
Reply to author
Forward
0 new messages