+ done
+ @for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
+
+tests/test.bmpp: create_test_pattern
+ ./$< $@.new
+ mv $@.new $@
+
+create_test_pattern: create_test_pattern.cmo
+ $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -pp camlp4of \
+ unix.cma -I +camlp4 camlp4lib.cma \
+ $(OCAMLCLIBS) \
+ -I . bitstring.cma bitstring_persistent.cma $< -o $@
+
+create_test_pattern.cmo: create_test_pattern.ml
+ $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -pp camlp4of \
+ unix.cma -I +camlp4 \
+ -I . -c $< -o $@
+
+# Coverage of tests.
+
+ifneq ($(BISECT_REPORT),no)
+coverage:
+ rm -f coverage-report/*
+ rm -f bisect*.out
+ $(MAKE) test
+ $(BISECT_REPORT) -html coverage-report bisect*.out
+ rm -f bisect*.out
+ @echo Coverage report is in `pwd`/coverage-report/index.html
+endif
+
+# Examples.
+
+examples: pa_bitstring.cmo bitstring.cma bitstring_persistent.cma
+ @for f in $(EXAMPLES); do \
+ echo Building $$f; \
+ $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) $(PP) \
+ -package unix -linkpkg -I . bitstring.cma $$f.ml -o $$f; \