Christian Lavoie | afc6d8f | 2011-02-20 02:39:19 +0000 | [diff] [blame] | 1 | # Copyright 2009 The Go Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style |
| 3 | # license that can be found in the LICENSE file. |
| 4 | |
| 5 | # After editing the DIRS= list or adding imports to any Go files |
| 6 | # in any of those directories, run: |
| 7 | # |
| 8 | # ./deps.bash |
| 9 | # |
| 10 | # to rebuild the dependency information in Make.deps. |
| 11 | |
| 12 | |
| 13 | include $(GOROOT)/src/Make.inc |
| 14 | |
| 15 | all: Make.deps install |
| 16 | |
| 17 | DIRS=\ |
| 18 | thrift/\ |
| 19 | |
| 20 | TEST=\ |
| 21 | $(filter-out $(NOTEST),$(DIRS)) |
| 22 | |
| 23 | |
| 24 | clean.dirs: $(addsuffix .clean, $(DIRS)) |
| 25 | install.dirs: $(addsuffix .install, $(DIRS)) |
| 26 | nuke.dirs: $(addsuffix .nuke, $(DIRS)) |
| 27 | test.dirs: $(addsuffix .test, $(DIRS)) |
| 28 | check.dirs: $(addsuffix .check, $(DIRS)) |
| 29 | |
| 30 | %.clean: |
| 31 | +cd $* && gomake clean |
| 32 | |
| 33 | %.install: |
| 34 | +cd $* && gomake install |
| 35 | |
| 36 | %.nuke: |
| 37 | +cd $* && gomake nuke |
| 38 | |
| 39 | %.test: |
| 40 | +cd $* && gomake test |
| 41 | |
| 42 | %.check: |
| 43 | +cd $* && gomake check |
| 44 | |
| 45 | clean: clean.dirs |
| 46 | |
| 47 | install: install.dirs |
| 48 | |
| 49 | test: test.dirs |
| 50 | |
| 51 | check: check.dirs |
| 52 | |
| 53 | #nuke: nuke.dirs |
| 54 | # rm -rf "$(GOROOT)"/pkg/thrift.* |
| 55 | |
| 56 | echo-dirs: |
| 57 | @echo $(DIRS) |
| 58 | |
| 59 | Make.deps: |
| 60 | ./deps.bash |
| 61 | |
| 62 | deps: |
| 63 | ./deps.bash |
| 64 | |