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.
15 # # If the Makefile.in.in file in po/ already contains DESTDIR support, skip the patching.
17 if ! grep DESTDIR Makefile.in.in > /dev/null ; then \
18 patch -Ns -p0 < `pwd`/../debian/po-Makefile.in.in.diff || true ;\
21 env CFLAGS='-O2 -Wall' ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
22 --infodir=\$${prefix}/share/info --sysconfdir=/etc --localstatedir=/var
42 $(MAKE) install DESTDIR=`pwd`/debian/tmp
43 mkdir -p `pwd`/debian/tmp/etc/tinc/example
44 cp doc/tinc.conf.sample `pwd`/debian/tmp/etc/tinc/example/tinc.conf
45 ln -s /usr/share/doc/tinc/README.Debian `pwd`/debian/tmp/etc/tinc/example/README
48 # Build architecture-independent files here.
49 binary-indep: build install
50 # We have nothing to do by default.
52 # Build architecture-dependent files here.
53 binary-arch: build install
61 dh_installchangelogs ChangeLog
73 binary: binary-indep binary-arch
74 .PHONY: build clean binary-indep binary-arch binary install