mirror of https://github.com/golang/go.git
avoid unnecessary installs
R=r DELTA=6 (4 added, 0 deleted, 2 changed) OCL=33107 CL=33110
This commit is contained in:
parent
f60203666b
commit
ff5618e2e3
|
|
@ -5,7 +5,9 @@
|
||||||
package: _obj/$(TARG).a
|
package: _obj/$(TARG).a
|
||||||
testpackage: _test/$(TARG).a
|
testpackage: _test/$(TARG).a
|
||||||
|
|
||||||
dir=$(shell echo $(TARG) | sed 's|[^/]*$$||')
|
elem=$(lastword $(subst /, ,$(TARG)))
|
||||||
|
dir=$(patsubst %/$(elem),%,$(TARG))
|
||||||
|
|
||||||
pkgdir=$(GOROOT)/pkg/$(GOOS)_$(GOARCH)
|
pkgdir=$(GOROOT)/pkg/$(GOOS)_$(GOARCH)
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
|
|
@ -24,7 +26,9 @@ nuke: clean
|
||||||
testpackage-clean:
|
testpackage-clean:
|
||||||
rm -f _test/$(TARG).a _gotest_.$O
|
rm -f _test/$(TARG).a _gotest_.$O
|
||||||
|
|
||||||
install: package
|
install: $(pkgdir)/$(TARG).a
|
||||||
|
|
||||||
|
$(pkgdir)/$(TARG).a: package
|
||||||
test -d $(GOROOT)/pkg && mkdir -p $(pkgdir)/$(dir)
|
test -d $(GOROOT)/pkg && mkdir -p $(pkgdir)/$(dir)
|
||||||
cp _obj/$(TARG).a $(pkgdir)/$(TARG).a
|
cp _obj/$(TARG).a $(pkgdir)/$(TARG).a
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue