-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
32 lines (25 loc) · 754 Bytes
/
Makefile
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
32
SOURCES := $(wildcard *.go) \
$(wildcard measurement/*.go) \
$(wildcard measurement/dns/*.go) \
$(wildcard measurement/ping/*.go) \
$(wildcard measurement/traceroute/*.go) \
$(wildcard measurement/http/*.go) \
$(wildcard measurement/ntp/*.go) \
$(wildcard measurement/sslcert/*.go) \
$(wildcard request/*.go) \
$(wildcard request/probe/*.go)
EXAMPLE_SOURCES = $(wildcard example/*/*.go)
all: .built
dep:
go get github.com/miekg/dns
go get github.com/graarh/golang-socketio
go get github.com/graarh/golang-socketio/transport
fmt: format
clean:
rm -f .built
format:
gofmt -w $(SOURCES) $(EXAMPLE_SOURCES)
sed -i -e 's% % %g' $(SOURCES) $(EXAMPLE_SOURCES)
.built: $(SOURCES)
go build -v -x
touch .built