Makefile improvements to handle the examples package.
authorChris Jones <chris@cjones.org>
Wed, 28 Dec 2011 12:46:03 -0700
changeset 18 9f4af32925bf
parent 17 d269d9c0fc8e
child 19 e923f28d65aa
Makefile improvements to handle the examples package.
Makefile
examples/Makefile
--- a/Makefile	Wed Dec 28 12:39:24 2011 -0700
+++ b/Makefile	Wed Dec 28 12:46:03 2011 -0700
@@ -10,6 +10,12 @@
 	stream.go \
 	structs.go \
 
-# TODO Add a target to build examples.
+examples: install
+	gomake -C examples all
+
+clean: clean-examples
+
+clean-examples:
+	gomake -C examples clean
 
 include $(GOROOT)/src/Make.pkg
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/Makefile	Wed Dec 28 12:46:03 2011 -0700
@@ -0,0 +1,11 @@
+# Copyright 2009 The Go Authors.  All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+include $(GOROOT)/src/Make.inc
+
+TARG=interact
+GOFILES=\
+	interact.go \
+
+include $(GOROOT)/src/Make.cmd