2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
5 # Uncomment this to turn on verbose mode.
8 TARGETDIR = debian/liblablgtkmathview-ocaml-dev
9 OCAML_STDLIB_DIR = $(shell ocamlc -where)
11 include debian/autodebian.make
13 configure: configure-stamp
14 configure-stamp: autodebian-stamp
20 build: configure-stamp build-stamp
25 if [ -x /usr/bin/ocamlopt ]; then $(MAKE) opt; else true; fi
29 clean: autodebian-clean
32 rm -f build-stamp configure-stamp
37 distclean: clean autodebian-distclean
45 $(MAKE) install PREFIX=$(TARGETDIR)$(OCAML_STDLIB_DIR)
48 dh_install -p liblablgtkmathview-ocaml --sourcedir=$(TARGETDIR)
50 binary-arch: build install
57 dh_installchangelogs -s ChangeLog
69 .PHONY: build clean binary-arch binary install configure