瀏覽代碼

build: isolate compilation and generation targets

Co-authored-by: Cursor <cursoragent@cursor.com>
jamesread 1 天之前
父節點
當前提交
5f53faacd7
共有 2 個文件被更改,包括 3 次插入7 次删除
  1. 2 6
      service/Makefile
  2. 1 1
      service/generate.go

+ 2 - 6
service/Makefile

@@ -14,14 +14,10 @@ prep:
 	go generate ./...
 
 compile-armhf:
-	go env -w GOARCH=arm GOARM=6
-	go build -o OliveTin.armhf
-	go env -u GOARCH GOARM
+	GOOS=linux GOARCH=arm GOARM=6 go build -o OliveTin.armhf
 
 compile-x64-lin:
-	go env -w GOOS=linux
-	go build -o OliveTin
-	go env -u GOOS
+	GOOS=linux GOARCH=amd64 go build -o OliveTin
 
 compile-x64-win: windows-resources
 	GOOS=windows GOARCH=amd64 go build -o OliveTin.exe

+ 1 - 1
service/generate.go

@@ -1,3 +1,3 @@
-//go:generate make -wC ../
+//go:generate make -wC ../ proto
 
 package main