mirror of
https://github.com/golang/go
synced 2024-11-20 07:54:39 -07:00
8a8ecda54a
Using make -C $* rather than (cd $* ; make) results in a small, but measurable improvement in build times where compilation is not the major component. eg. before - ~/go/src/pkg$ time make real 0m1.176s user 0m0.639s sys 0m0.399s after - ~/go/src/pkg$ time make real 0m0.916s user 0m0.571s sys 0m0.243s There are other places in the distribution src/make.common for example that could also benefit from this change. R=adg CC=golang-dev, rsc https://golang.org/cl/4174055
14 lines
336 B
Plaintext
14 lines
336 B
Plaintext
# Copyright 2009 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
clean:
|
|
rm -rf *.o *.a *.[$(OS)] [$(OS)].out $(CLEANFILES)
|
|
|
|
%.make:
|
|
gomake -C $* install
|
|
|
|
.PHONY: all clean nuke install coverage test bench testpackage-clean\
|
|
importpath dir
|
|
|