3 # Sample debian/rules that uses debhelper.
4 # GNU copyright 1997 to 1999 by Joey Hess.
7 TMP = $(CURDIR)/debian/$(PACKAGE)
10 INSTALL_FILE = $(INSTALL) -p -oroot -groot -m644
11 INSTALL_PROGRAM = $(INSTALL) -p -oroot -groot -m755
12 INSTALL_SCRIPT = $(INSTALL) -p -oroot -groot -m755
13 INSTALL_DIR = $(INSTALL) -p -d -oroot -groot -m755
15 # Uncomment this to turn on verbose mode.
18 configure: configure-stamp
21 rm -f config.sub config.guess
22 ln -sf /usr/share/misc/config.sub config.sub
23 ln -sf /usr/share/misc/config.guess config.guess
24 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man
28 build: configure-stamp build-stamp
30 build-stamp: configure-stamp
38 rm -f build-stamp configure-stamp
47 $(MAKE) install DESTDIR=$(CURDIR)/debian/backupninja
48 chmod +x debian/backupninja/usr/lib/backupninja/easydialog
49 chmod +x debian/backupninja/usr/lib/backupninja/tools
50 chmod -x debian/backupninja/usr/lib/backupninja/parseini
51 chmod -x debian/backupninja/usr/lib/backupninja/vserver
52 rm debian/backupninja/usr/share/backupninja/example.*
58 binary-indep: build-indep
60 build-indep: build install
64 dh_installchangelogs ChangeLog
70 dh_fixperms -Xdebian/backupninja/etc/backup.d
78 binary: binary-indep binary-arch
79 .PHONY: build clean binary-indep binary-arch binary install configure