瀏覽代碼

use more robust go make system

raylu 14 年之前
父節點
當前提交
602c45ac10
共有 2 個文件被更改,包括 8 次插入7 次删除
  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