diff --git a/.travis.yml b/.travis.yml
index fa17c2f76..5202192fa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -32,7 +32,7 @@ before_script:
script:
- go build -tags example -v ./...
- - gopherjs build -tags example -v github.com/hajimehoshi/ebiten/examples/blocks
+ - gopherjs build --tags example -v github.com/hajimehoshi/ebiten/examples/blocks
# Give up testing on Travis CI because of X error
# https://travis-ci.org/hajimehoshi/ebiten/jobs/107404013
diff --git a/_docs/index.tmpl.html b/_docs/index.tmpl.html
index 304d08ccc..2d0c32459 100644
--- a/_docs/index.tmpl.html
+++ b/_docs/index.tmpl.html
@@ -58,10 +58,12 @@ pre {
{{- end}}
-Execute the example
+Execute the examples
:; go get github.com/hajimehoshi/ebiten
:; cd $GOPATH/src/github.com/hajimehoshi/ebiten/examples
-:; go run rotate/main.go
+:; go run -tags example rotate/main.go
+
+Note that you need to specify example
tag.
Getting Started
diff --git a/examples/README.md b/examples/README.md
new file mode 100644
index 000000000..a405b3147
--- /dev/null
+++ b/examples/README.md
@@ -0,0 +1,8 @@
+# Exacute the examples
+
+```sh
+:; cd $GOPATH/src/github.com/hajimehoshi/ebiten/examples
+:; go run -tags example rotate/main.go
+```
+
+Note that you need to specify `example` tag.
\ No newline at end of file
diff --git a/examples/_server/main.go b/examples/_server/main.go
index b4a0aaa50..acdb56920 100644
--- a/examples/_server/main.go
+++ b/examples/_server/main.go
@@ -63,7 +63,7 @@ func createJSIfNeeded(name string) (string, error) {
}
if (err != nil && os.IsNotExist(err)) || time.Now().Sub(stat.ModTime()) > 5*time.Second {
target := "github.com/hajimehoshi/ebiten/examples/" + name
- out, err := exec.Command("gopherjs", "build", "-o", out, target).CombinedOutput()
+ out, err := exec.Command("gopherjs", "build", "--tags", "example", "-o", out, target).CombinedOutput()
if err != nil {
log.Print(string(out))
return "", errors.New(string(out))