Browse Source

use more robust go make system

raylu 14 years ago
parent
commit
602c45ac10
2 changed files with 8 additions and 7 deletions
  1. 1 1
      .gitignore
  2. 7 6
      Makefile

+ 1 - 1
.gitignore

@@ -1,2 +1,2 @@
 aa
-*.6
+_go_.6

+ 7 - 6
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