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 compatibility version to use.
11 TARGETDIR = debian/libgdome2-xslt-ocaml-dev
13 configure: configure-stamp
17 cd ocaml/gdome_xslt/; ./configure
23 build-stamp: configure-stamp
26 $(MAKE) -C C/gdome_xslt/
27 $(MAKE) -C ocaml/gdome_xslt/
28 -if [ -x /usr/bin/ocamlopt ]; then \
29 $(MAKE) -C ocaml/gdome_xslt/ opt; \
37 rm -f build-stamp configure-stamp
39 -$(MAKE) -C ocaml/gdome_xslt/ distclean
40 -$(MAKE) -C C/gdome_xslt/ clean
50 # trick: redifine CAMLLIB so that findlibd doesn't try to modify the
51 # official /var/lib/ocaml/ld.conf
52 CAMLLIB=$(CURDIR) $(MAKE) -C ocaml/gdome_xslt/ install PREFIX=$(CURDIR)/$(TARGETDIR)/usr/lib/ocaml
55 dh_movefiles -p libgdome2-xslt-ocaml --sourcedir=$(TARGETDIR)
57 # Build architecture-dependent files here.
58 binary-arch: build movefiles
65 dh_installchangelogs -s
69 dh_ocamlld -p libgdome2-xslt-ocaml /usr/lib/ocaml/gdome2-xslt
78 .PHONY: build clean movefiles binary-arch binary install configure