diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-02-18 09:50:58 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-02-18 09:50:58 +0100 |
commit | c072558b90f1bbedc2022b0f30c8b1ac4712538e (patch) | |
tree | 67767591619e4bd8111fb05fac185cde94fb7378 /src/Make.cmd | |
parent | 5859517b767c99749a45651c15d4bae5520ebae8 (diff) | |
download | golang-upstream/2011.02.15.tar.gz |
Imported Upstream version 2011.02.15upstream/2011.02.15
Diffstat (limited to 'src/Make.cmd')
-rw-r--r-- | src/Make.cmd | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Make.cmd b/src/Make.cmd index 34f5663bc..2b9aba4a5 100644 --- a/src/Make.cmd +++ b/src/Make.cmd @@ -27,3 +27,22 @@ CLEANFILES+=$(TARG) nuke: clean rm -f $(QUOTED_GOBIN)/$(TARG) + +# for gotest +testpackage: _test/main.a + +testpackage-clean: + rm -f _test/main.a _gotest_.$O + +testpackage: _test/main.a + +_test/main.a: _gotest_.$O + @mkdir -p _test + rm -f $@ + gopack grc $@ _gotest_.$O + +_gotest_.$O: $(GOFILES) $(GOTESTFILES) + $(GC) -o $@ $(GOFILES) $(GOTESTFILES) + +importpath: + echo main |