~kris/9p

disco

ref: 0f5b85f2441b346817e3dd96b984d622b03f957e disco/mkfile -rw-r--r-- 349 bytes
0f5b85f2 — henesy v2.3 release ;; fix @mentions (yay!) ;; migrate fully to github dependencies 6 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
			file = disco
			if(! test -e $file){
				file = disco.exe
			}
			cp $file bin/$p/$a/
			rm $file
		}
	}