summaryrefslogtreecommitdiff
path: root/Makefile
blob: 49dedc5a036a97c12e413eff7610df20585f0e74 (plain)
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
.PHONY: all fmt install test clean distclean play

PWD=$(shell pwd)
GOPATH:=${PWD}:${GOPATH}
OLDBIN:=${GOBIN}
GOBIN:=${PWD}

all:
	go get -v globster/...

fmt:
	go fmt globster/...

install:
	GOBIN="${OLDBIN}" go install globster

test:
	go test globster/...

clean:
	rm -rf globster pkg

distclean: clean
	rm -rf src/blicky.net

# Yorhel's playground.
play: all
	@./globster -l sock &echo $$!>pid;\
		PERL_ANYEVENT_MODEL=Perl perl -I../tanja/perl ../tanja/perl/tanja-cli.pl -vc $$PWD/sock;\
		kill `cat pid`;\
		rm -f sock pid