diff --git a/Rlang-QQ.cabal b/Rlang-QQ.cabal
--- a/Rlang-QQ.cabal
+++ b/Rlang-QQ.cabal
@@ -1,5 +1,5 @@
 name: Rlang-QQ
-version: 0.1.0.1
+version: 0.1.0.2
 cabal-version: >=1.8
 build-type: Simple
 license: BSD3
@@ -19,6 +19,7 @@
                     examples/*.Rmd,
                     examples/*.ref
                     examples/*.png
+                    examples/Makefile
 
 source-repository head
     type: darcs
diff --git a/examples/Makefile b/examples/Makefile
new file mode 100644
--- /dev/null
+++ b/examples/Makefile
@@ -0,0 +1,32 @@
+# build and test all examples
+#
+
+
+SHELL = bash
+
+default: test6.html test7.html
+	cd ../; runghc examples/runexamples.hs
+	ghc -O2 romberg.hs; ./romberg
+
+%.html: %.md
+	pandoc -s $< -o "$@"
+
+%.md: %.Rmd
+	R --no-save <<< 'library(knitr); knit("$<")'
+
+%.Rmd.html: %.Rmd
+	vim -c ":TOhtml" -c ":wqall" $<
+
+.PHONY: clean installdeps
+clean:
+	rm -rf haskell*.txt romberg{,.hi,.o}  *.out Rtmp/ \
+		test{6,7}.{md}
+
+cleaner: clean
+	rm -rf test{6,7}.{html,Rmd.html,md} test6_fig1.png \
+		romberg_Double.pdf romberg_Float.pdf
+
+installdeps:
+	R --no-save <<< 'install.packages(c("knitr", "lattice", "reshape", "ggplot2", "lattice"))'
+	cabal install lens numbers
+
diff --git a/examples/test6_fig1.png b/examples/test6_fig1.png
new file mode 100644
Binary files /dev/null and b/examples/test6_fig1.png differ
