~kris/9p

disco

ref: e0dcabc8604b2acec6b0ea3b48bf37c45bd3f978 disco/mkfile -rw-r--r-- 283 bytes
e0dcabc8 — Sean Hinchee extend mk bins target with platform/arch 7 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
GOOS=plan9
GOARCH=$objtype

all: 
	go build

install: all
	cp ./disco $home/bin/$GOARCH/disco

bins: 
	plat=(plan9 linux windows)
	arch=(amd64 386 arm)
	for(p in $plat){
		for(a in $arch){
			mkdir -p bin/$p/$a
			GOOS=$p GOARCH=$a go build
			cp disco bin/$p/$a/
			rm disco
		}
	}