<?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>Mon, 30 Jan 2012 12:00:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<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 [...]
No related posts.]]></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>
<div style="width:468px;margin:0 auto">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-0410364841759590";
/* Homepage, 468x60 ads, After posts, created 12/19/08 */
google_ad_slot = "4210204644";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>No related posts.</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>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: alwaysgetbetter.com @ 2012-02-07 18:28:26 -->
