2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
5 # Uncomment this to turn on verbose mode.
9 OCAML_STDLIB_DIR = $(shell ocamlc -where)
11 configure: configure-stamp
18 build: configure-stamp build-stamp
23 if [ -x /usr/bin/ocamlopt ]; then $(MAKE) opt; else true; fi
30 rm -f build-stamp configure-stamp
42 mkdir -p $(TARGETDIR)$(OCAML_STDLIB_DIR)
43 $(MAKE) install PREFIX=$(TARGETDIR)$(OCAML_STDLIB_DIR)
45 binary-arch: build install
53 dh_installchangelogs ChangeLog
65 .PHONY: build clean binary-arch binary install configure