Commit ff5618e2 authored by Russ Cox's avatar Russ Cox

avoid unnecessary installs

R=r
DELTA=6  (4 added, 0 deleted, 2 changed)
OCL=33107
CL=33110
parent f6020366
......@@ -5,7 +5,9 @@
package: _obj/$(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)
coverage:
......@@ -24,7 +26,9 @@ nuke: clean
testpackage-clean:
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)
cp _obj/$(TARG).a $(pkgdir)/$(TARG).a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment