build: implement NOINSTALL=1 for Make.ccmd

The makefiles for prof and cov use it already.
(It's also in Make.clib.)

R=adg
CC=golang-dev
https://golang.org/cl/2036045
This commit is contained in:
Russ Cox 2010-09-03 15:37:57 -04:00
parent a41db4318d
commit ef8af73ef5
1 changed files with 2 additions and 0 deletions

View File

@ -12,7 +12,9 @@ $(OFILES): $(HFILES)
clean:
rm -f *.$(HOST_O) $(TARG) $(CLEANFILES)
ifneq ($(NOINSTALL),1)
install: $(QUOTED_GOBIN)/$(TARG)
endif
$(QUOTED_GOBIN)/$(TARG): $(TARG)
cp $(TARG) "$(GOBIN)"/$(TARG)