]> Cypherpunks repositories - gostls13.git/commitdiff
Make.cmd: create TARGDIR if necessary
authorGustavo Niemeyer <gustavo@niemeyer.net>
Tue, 3 May 2011 12:53:04 +0000 (09:53 -0300)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Tue, 3 May 2011 12:53:04 +0000 (09:53 -0300)
Fixes #1771.

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

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