~wallyworld/gwacl/fix-request-eof

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
# Build, and run tests.
check: examples
	go test -gocheck.v=true ./...

debug-test:
	go test -c -gcflags "-N -l"
	gdb gwacl.test
	$(RM) gwacl.test

all_source := $(shell find . -name '*.go' ! -name '*_test.go')

example_source := $(wildcard example/*/run.go)
example_binaries := $(patsubst %.go,%,$(example_source))

# Clean up binaries.
clean:
	$(RM) $(example_binaries)

# Reformat the source files to match our layout standards.
# This includes gofmt's "simplify" option to streamline the source code.
format:
	./utilities/format -s

# Build the examples (we have no tests for them).
examples: $(example_binaries)

%: %.go $(all_source)
	go build -o $@ $<

.PHONY: check clean format examples debug_check