Parcourir la source

use more robust go make system

raylu il y a 14 ans
Parent
commit
602c45ac10
2 fichiers modifiés avec 8 ajouts et 7 suppressions
  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