summaryrefslogtreecommitdiff
path: root/src/Make.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/Make.cmd')
-rw-r--r--src/Make.cmd19
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