-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (31 loc) · 1.15 KB
/
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
INSTALL_DIR = /usr/local/bin
ifdef prefix
INSTALL_DIR = $(prefix)
endif
build:
go build -o bin/swiss-count ./cmd/swiss-count/main.go
go build -o bin/swiss-subset ./cmd/swiss-subset/main.go
go build -o bin/swiss-create-refdb ./cmd/swiss-create-refdb/main.go
go build -o bin/swiss-prune ./cmd/swiss-prune/main.go
go build -o bin/swiss-split ./cmd/swiss-split/main.go
go build -o bin/fannot-run ./cmd/fannot-run/main.go
go build -o bin/refdb-info ./cmd/refdb-info/main.go
test:
go test -v fannot/fannot_test.go
go test -v fannot/param.go fannot/param_test.go
install:
cp bin/swiss-count $(INSTALL_DIR)/swiss-count
cp bin/swiss-subset $(INSTALL_DIR)/swiss-subset
cp bin/swiss-create-refdb $(INSTALL_DIR)/swiss-create-refdb
cp bin/swiss-prune $(INSTALL_DIR)/swiss-prune
cp bin/swiss-split $(INSTALL_DIR)/swiss-split
cp bin/fannot-run $(INSTALL_DIR)/fannot-run
cp bin/refdb-info $(INSTALL_DIR)/refdb-info
uninstall:
rm -f $(INSTALL_DIR)/swiss-count
rm -f $(INSTALL_DIR)/swiss-subset
rm -f $(INSTALL_DIR)/swiss-create-refdb
rm -f $(INSTALL_DIR)/swiss-prune
rm -f $(INSTALL_DIR)/swiss-split
rm -f $(INSTALL_DIR)/fannot-run
rm -f $(INSTALL_DIR)/refdb-info