<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Always Get Better &#187; Go Language</title>
	<atom:link href="http://www.alwaysgetbetter.com/blog/category/general-programming/go-language/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alwaysgetbetter.com/blog</link>
	<description>Never stop looking for ways to improve</description>
	<lastBuildDate>Wed, 02 Jun 2010 12:16:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>A Simple Makefile for the Go Language</title>
		<link>http://www.alwaysgetbetter.com/blog/2010/01/19/simple-makefile-language/</link>
		<comments>http://www.alwaysgetbetter.com/blog/2010/01/19/simple-makefile-language/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 02:14:01 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Go Language]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[General Programming]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://www.alwaysgetbetter.com/blog/?p=290</guid>
		<description><![CDATA[Hey folks, it&#8217;s been awhile!
I&#8217;ve been playing with Google&#8217;s Go language, and will be sharing what I&#8217;ve learned over the coming weeks.
First off, which seems like the easier way to compile your source code? This:

6g fib.go
6l fib.6
mv 6.out fib

or this?

make

Personally, I prefer using a Makefile, even for a small project with one source file.
Without further [...]


Related posts:<ol><li><a href='http://www.alwaysgetbetter.com/blog/2009/11/12/google-launches-programming-language/' rel='bookmark' title='Permanent Link: Google Launches Its Own Programming Language'>Google Launches Its Own Programming Language</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Hey folks, it&#8217;s been awhile!</p>
<p>I&#8217;ve been playing with Google&#8217;s <em>Go</em> language, and will be sharing what I&#8217;ve learned over the coming weeks.</p>
<p>First off, which seems like the easier way to compile your source code? This:<br />
<code><br />
6g fib.go<br />
6l fib.6<br />
mv 6.out fib<br />
</code></p>
<p>or this?</p>
<p><code><br />
make<br />
</code></p>
<p>Personally, I prefer using a Makefile, even for a small project with one source file.</p>
<p>Without further adieu, a simple Makefile for the Go Language:</p>
<p><code><br />
GC      = 6g<br />
LD      = 6l<br />
TARG    = fib<br />
</code><code><br />
O_FILES = fib.6<br />
</code><code><br />
all:<br />
        make clean<br />
        make $(TARG)<br />
</code><code><br />
$(TARG): $(O_FILES)<br />
        $(LD) -o $@ $(O_FILES)<br />
        @echo "Done. Executable is: $@"<br />
</code><code><br />
$(O_FILES): %.6: %.go<br />
        $(GC) -c $<<br />
</code><code><br />
clean:<br />
        rm -rf *.[$(OS)o] *.a [$(OS)].out _obj $(TARG) *.6<br />
</code></p>


<p>Related posts:<ol><li><a href='http://www.alwaysgetbetter.com/blog/2009/11/12/google-launches-programming-language/' rel='bookmark' title='Permanent Link: Google Launches Its Own Programming Language'>Google Launches Its Own Programming Language</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.alwaysgetbetter.com/blog/2010/01/19/simple-makefile-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
