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 $(MAKE) -C ocaml/gdome_xslt/ install PREFIX=$(CURDIR)/$(TARGETDIR)/usr/lib/ocaml
53 dh_movefiles -p libgdome2-xslt-ocaml --sourcedir=$(TARGETDIR)
55 # Build architecture-dependent files here.
56 binary-arch: build movefiles
63 dh_installchangelogs -s
67 dh_ocamlld -p libgdome2-xslt-ocaml /usr/lib/ocaml/gdome2-xslt
76 .PHONY: build clean movefiles binary-arch binary install configure