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 UPSTREAM_CHANGELOG = ChangeLog
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 -test -x /usr/bin/ocamlopt && $(MAKE) opt
28 #/usr/bin/docbook-to-man debian/mlminidom.sgml > mlminidom.1
35 rm -f build-stamp configure-stamp
37 # Add here commands to clean up after the build process.
48 # Add here commands to install the package into debian/mlminidom.
49 $(MAKE) install DESTDIR=$(CURDIR)/debian/mlminidom/usr/lib/ocaml
52 # Build architecture-independent files here.
53 binary-indep: build install
54 # We have nothing to do by default.
56 # Build architecture-dependent files here.
57 binary-arch: build install
73 if [ -s $(UPSTREAM_CHANGELOG) ]; then \
74 dh_installchangelogs $(UPSTREAM_CHANGELOG); \
76 dh_installchangelogs; \
90 binary: binary-indep binary-arch
91 .PHONY: build clean binary-indep binary-arch binary install configure