-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
38 lines (25 loc) · 769 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
33
34
35
36
37
38
TARGETS = strdiff intdiff unistrdiff uniintdiff unifilediff strpatch filepatch
all: $(TARGETS)
strdiff: *.go examples/strdiff.go
go build -o $@ examples/[email protected]
intdiff: *.go examples/intdiff.go
go build -o $@ examples/[email protected]
unistrdiff: *.go examples/unistrdiff.go
go build -o $@ examples/[email protected]
uniintdiff: *.go examples/uniintdiff.go
go build -o $@ examples/[email protected]
unifilediff: *.go examples/unifilediff.go examples/util.go
go build -o $@ examples/[email protected] examples/util.go
strpatch: *.go examples/strpatch.go
go build -o $@ examples/[email protected]
filepatch: *.go examples/filepatch.go examples/util.go
go build -o $@ examples/[email protected] examples/util.go
fmt:
go fmt ./...
check:
go test -v .
bench:
go test -bench . -benchmem
clean:
rm -f $(TARGETS)
.PHONY: all