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 # This is the debhelper compatability version to use.
11 TARGETDIR = debian/liblablgtkmathview-ocaml-dev
13 configure: configure-stamp
16 # Add here commands to configure the package.
21 build: configure-stamp build-stamp
25 # Add here commands to compile the package.
27 if [ -x /usr/bin/ocamlopt ]; then $(MAKE) opt; else true; fi
34 rm -f build-stamp configure-stamp
36 # Add here commands to clean up after the build process.
47 # trick: redifine CAMLLIB so that findlibd doesn't try to modify the
48 # official /var/lib/ocaml/ld.conf
49 $(MAKE) install PREFIX=$(TARGETDIR)/usr/lib/ocaml/3.06
52 dh_movefiles -p liblablgtkmathview-ocaml --sourcedir=$(TARGETDIR)
54 # Build architecture-independent files here.
55 binary-indep: build movefiles
56 # We have nothing to do by default.
58 # Build architecture-dependent files here.
59 binary-arch: build install
67 dh_installchangelogs -s ChangeLog
71 # dh_ocamlld -p liblablgtkmathview-ocaml /usr/lib/ocaml/lablgtkmathview
79 binary: binary-indep binary-arch
80 .PHONY: build clean binary-indep binary-arch binary install configure