blob: 8e81d8d362a2b7321c1ffa62e6a6b3eab4d5abda [file] [log] [blame]
Christian Lavoieafc6d8f2011-02-20 02:39:19 +00001# 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
13include $(GOROOT)/src/Make.inc
14
15all: Make.deps install
16
17DIRS=\
18 thrift/\
19
20TEST=\
21 $(filter-out $(NOTEST),$(DIRS))
22
23
24clean.dirs: $(addsuffix .clean, $(DIRS))
25install.dirs: $(addsuffix .install, $(DIRS))
26nuke.dirs: $(addsuffix .nuke, $(DIRS))
27test.dirs: $(addsuffix .test, $(DIRS))
28check.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
45clean: clean.dirs
46
47install: install.dirs
48
49test: test.dirs
50
51check: check.dirs
52
53#nuke: nuke.dirs
54# rm -rf "$(GOROOT)"/pkg/thrift.*
55
56echo-dirs:
57 @echo $(DIRS)
58
59Make.deps:
60 ./deps.bash
61
62deps:
63 ./deps.bash
64