Skip to content

Instantly share code, notes, and snippets.

@mrosset
mrosset / testit
Created June 29, 2012 22:42
watch android project, rebuild,install and run on MODIFY
#!/bin/bash
_testit() {
printf "running "
touch .lock
ant debug install 1> /dev/null
adb shell 'am start -n com.example.thumbs/.ThumbsActivity' 1> /dev/null
rm .lock
echo "Done."
}
include $(GOROOT)/src/Make.inc
CMDS=\
command-1\
command-2\
command-3
PKGS=\
package-1\
package-2\
@davecheney
davecheney / Makefile
Created March 4, 2011 00:08
A sample top level Makefile for multi package Go projects
# A sample top level Makefile for multi package Go projects.
include $(GOROOT)/src/Make.inc
CMDS=\
command-1\
command-2\
command-3
PKGS=\
package main
import (
"container/vector"
"os"
"path"
"io/ioutil"
)
type V struct {