소스 검색

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