3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
9 # Uncomment this to turn on verbose mode.
12 ifneq "$(wildcard /usr/share/quilt/quilt.make)" ""
13 include /usr
/share
/quilt
/quilt.make
16 config.status
: configure
18 # Add here commands to configure the package.
19 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
20 cp
-f
/usr
/share
/misc
/config.sub config.sub
22 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
23 cp
-f
/usr
/share
/misc
/config.guess config.guess
26 .
/configure
--prefix=/usr
--sysconfdir
=/etc
--mandir=\
$${prefix}/share
/man
--localstatedir
=/var
--infodir=\
$${prefix}/share
/info --with-lcrso-dir
=\
$${prefix}/lib
/lcrso
30 build
: patch build-stamp
31 build-stamp
: config.status
34 # Add here commands to compile the package.
44 # Add here commands to clean up after the build process.
45 [ ! -f Makefile
] ||
$(MAKE
) distclean
46 rm -f config.sub config.guess
50 install: install-stamp
57 # Add here commands to install the package into debian/tmp
58 $(MAKE
) DESTDIR
=$(CURDIR
)/debian
/tmp
install
60 # we do not use corosync-keygen
61 rm $(CURDIR
)/debian
/tmp
/usr
/sbin
/corosync-keygen
63 chmod
0644 $(CURDIR
)/debian
/tmp
/usr
/lib
/lcrso
/*.lcrso
64 strip -s
$(CURDIR
)/debian
/tmp
/usr
/lib
/lcrso
/*.lcrso
69 # Build architecture-independent files here.
70 binary-indep
: build
install
71 # We have nothing to do by default.
73 # Build architecture-dependent files here.
74 binary-arch
: build
install
104 binary
: binary-indep binary-arch
105 .PHONY
: build
clean binary-indep binary-arch binary
install