~kris/9p

disco

ref: 31121d88d695b393e2db0b4e41c328b5ece5bcfd disco/mkfile -rw-r--r-- 599 bytes
31121d88 — Sean Hinchee merge 8 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
25
26
27
28
29
30
31
GOOS=plan9
GOARCH=$objtype

all: 
	go build

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

deps: 
	mkdir -p $GOPATH/src/bitbucket.org/henesy/disco
	dircp ./ $GOPATH/src/bitbucket.org/henesy/disco

crypto:
	orig=`{pwd}
	mkdir -p $GOPATH/src/golang.org/x/crypto
	cd $GOPATH/src/golang.org/x
	hget https://github.com/golang/crypto/archive/master.zip > crypto.zip; unzip -f crypto.zip
	dircp crypto-master crypto; rm -r crypto-master
	cd $orig

rebuild: 
	go install bitbucket.org/henesy/disco
	mk install

bins: 
	arch=(amd64 386 arm)
	for(a in $arch){
		GOARCH=$a go build
		cp disco bin/^$a^/
	}