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 ;\
22 env CFLAGS='-O2 -Wall' ./autogen.sh --prefix=/usr --mandir=\$${prefix}/share/man \
23 --infodir=\$${prefix}/share/info --sysconfdir=/etc --localstatedir=/var
44 $(MAKE) install DESTDIR=`pwd`/debian/tmp
45 mkdir -p `pwd`/debian/tmp/etc/tinc
46 cp -a doc/sample-config `pwd`/debian/tmp/etc/tinc/example
47 ln -s /usr/share/doc/tinc/README.Debian `pwd`/debian/tmp/etc/tinc/example/README
50 # Build architecture-independent files here.
51 binary-indep: build install
52 # We have nothing to do by default.
54 # Build architecture-dependent files here.
55 binary-arch: build install
64 dh_installchangelogs ChangeLog
76 binary: binary-indep binary-arch
77 .PHONY: build clean binary-indep binary-arch binary install