mirror of
https://github.com/golang/go
synced 2024-11-22 03:54:39 -07:00
build: generate, clean .exe files on Windows
R=rsc, brainman, vcc CC=golang-dev https://golang.org/cl/2165044
This commit is contained in:
parent
a0fc33a8ca
commit
1d62becbd8
@ -4,6 +4,10 @@
|
|||||||
|
|
||||||
# Makefile for commands written in C.
|
# Makefile for commands written in C.
|
||||||
|
|
||||||
|
ifeq (windows,$(findstring windows, $(shell uname | tr A-Z a-z | sed 's/mingw/windows/')))
|
||||||
|
TARG:=$(TARG).exe
|
||||||
|
endif
|
||||||
|
|
||||||
$(TARG): $(OFILES) $(LIB)
|
$(TARG): $(OFILES) $(LIB)
|
||||||
$(HOST_LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) $(LIB) -lbio -l9 -lm
|
$(HOST_LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) $(LIB) -lbio -l9 -lm
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ coverage:
|
|||||||
gotest
|
gotest
|
||||||
6cov -g $(shell pwd) $O.out | grep -v '_test\.go:'
|
6cov -g $(shell pwd) $O.out | grep -v '_test\.go:'
|
||||||
|
|
||||||
CLEANFILES+=*.cgo1.go *.cgo2.c _cgo_defun.c _cgo_gotypes.go _cgo_export.* *.so _obj _test _testmain.go
|
CLEANFILES+=*.cgo1.go *.cgo2.c _cgo_defun.c _cgo_gotypes.go _cgo_export.* *.so _obj _test _testmain.go *.exe
|
||||||
|
|
||||||
test:
|
test:
|
||||||
gotest
|
gotest
|
||||||
|
Loading…
Reference in New Issue
Block a user