summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-08-07 22:44:57 -0700
committerraylu <raylu@mixpanel.com>2011-08-07 22:44:57 -0700
commit602c45ac1086b4ace9e99edba4c9cfd1f142f016 (patch)
tree584c5aeca2096b7864c5b68375615511b19b1909
parentab80133d57cfc355fe78fdb906fdef28b0231706 (diff)
downloadaudioaxis-602c45ac1086b4ace9e99edba4c9cfd1f142f016.tar.xz
use more robust go make system
-rw-r--r--.gitignore2
-rw-r--r--Makefile13
2 files changed, 8 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore
index 351c99d..d130461 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
aa
-*.6
+_go_.6
diff --git a/Makefile b/Makefile
index 94e6269..2d31fbe 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
-all: aa
-
-main.6: main.go db.go updates.go
- 6g main.go db.go updates.go
+include $(GOROOT)/src/Make.inc
-aa: main.6
- 6l -o aa main.6
+TARG=aa
+GOFILES=main.go db.go updates.go
+pkgdir=$(QUOTED_GOROOT)/pkg/$(GOOS)_$(GOARCH)
+PREREQ=$(pkgdir)/github.com/Philio/GoMySQL.a
+
+include $(GOROOT)/src/Make.cmd