# HG changeset patch # User Chris Jones # Date 1325101563 25200 # Node ID 9f4af32925bf50c51dee368e550bb3962fdb497a # Parent d269d9c0fc8ebaab9b0e915229c86be5a06eda2a Makefile improvements to handle the examples package. diff -r d269d9c0fc8e -r 9f4af32925bf 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 diff -r d269d9c0fc8e -r 9f4af32925bf examples/Makefile --- /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