Skip to content

Commit 3d4161b

Browse files
makefile improved
Signed-off-by: Alessandro Carminati <[email protected]> Suggested-by: Maurizio Papini <[email protected]>
1 parent 2dfdd51 commit 3d4161b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
.PHONY: all cgo upx test testcgo code/check code/fmt clean
12

23
all: nav.go
3-
go build -ldflags="-r ."
4+
go build
45

56
cgo: nav.go dot_parser/libdotparser.so libdotparser.so
67
go build -ldflags="-r ." -tags CGO
@@ -12,6 +13,9 @@ test:
1213
go test -cover -v
1314
go test ./config -v -cover
1415

16+
test_cgo:
17+
go test -v -cover -ldflags="-r ." -tags CGO
18+
1519
code/check:
1620
@gofmt -l `find . -type f -name '*.go' -not -path "./vendor/*"`
1721

@@ -24,6 +28,6 @@ dot_parser/libdotparser.so: dot_parser/dot.l dot_parser/dot.y
2428
libdotparser.so: dot_parser/libdotparser.so
2529
ln -s dot_parser/libdotparser.so libdotparser.so
2630

27-
clean:
31+
clean:
2832
$(MAKE) -C dot_parser/ clean
2933
rm -f nav libdotparser.so

0 commit comments

Comments
 (0)