We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dfdd51 commit 3d4161bCopy full SHA for 3d4161b
Makefile
@@ -1,6 +1,7 @@
1
+.PHONY: all cgo upx test testcgo code/check code/fmt clean
2
3
all: nav.go
- go build -ldflags="-r ."
4
+ go build
5
6
cgo: nav.go dot_parser/libdotparser.so libdotparser.so
7
go build -ldflags="-r ." -tags CGO
@@ -12,6 +13,9 @@ test:
12
13
go test -cover -v
14
go test ./config -v -cover
15
16
+test_cgo:
17
+ go test -v -cover -ldflags="-r ." -tags CGO
18
+
19
code/check:
20
@gofmt -l `find . -type f -name '*.go' -not -path "./vendor/*"`
21
@@ -24,6 +28,6 @@ dot_parser/libdotparser.so: dot_parser/dot.l dot_parser/dot.y
24
28
libdotparser.so: dot_parser/libdotparser.so
25
29
ln -s dot_parser/libdotparser.so libdotparser.so
26
30
27
-clean:
31
+clean:
32
$(MAKE) -C dot_parser/ clean
33
rm -f nav libdotparser.so
0 commit comments