]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.r57] Make.cmd: create TARGDIR if necessary
authorRuss Cox <rsc@golang.org>
Tue, 3 May 2011 16:53:51 +0000 (12:53 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 3 May 2011 16:53:51 +0000 (12:53 -0400)
««« CL 4437089 / b2670a39da7c
Make.cmd: create TARGDIR if necessary

Fixes #1771.

R=adg, rsc1
CC=golang-dev
https://golang.org/cl/4437089
»»»

R=adg
CC=golang-dev
https://golang.org/cl/4454054

src/Make.cmd

index e769e3072a941badcc7749cc55d68168dec394b9..26c3ca2fc444a6312f0de6902bb0f657733b5c6e 100644 (file)
@@ -25,7 +25,7 @@ _go_.$O: $(GOFILES) $(PREREQ)
 install: $(TARGDIR)/$(TARG)
 
 $(TARGDIR)/$(TARG): $(TARG)
-       cp -f $(TARG) $(TARGDIR)
+       mkdir -p $(TARGDIR) && cp -f $(TARG) $(TARGDIR)
 
 CLEANFILES+=$(TARG) _test _testmain.go