move the branches directories up to the root of the repository
[matthijs/upstream/backupninja.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # GNU copyright 1997 to 1999 by Joey Hess.
5
6 PACKAGE = backupninja
7 TMP = $(CURDIR)/debian/$(PACKAGE)
8
9 INSTALL = install
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
14
15 # Uncomment this to turn on verbose mode.
16 #export DH_VERBOSE=1
17
18 configure: configure-stamp
19 configure-stamp:
20         dh_testdir
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
25         touch configure-stamp
26
27
28 build: configure-stamp build-stamp
29
30 build-stamp: configure-stamp 
31         dh_testdir
32         $(MAKE)
33         touch build-stamp
34
35 clean:
36         dh_testdir
37         dh_testroot
38         rm -f build-stamp configure-stamp
39         dh_clean 
40
41 install: build
42         dh_testdir
43         dh_testroot
44         dh_clean -k 
45         dh_installdirs
46
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.*
53
54         dh_install
55
56 binary-arch: 
57
58 binary-indep: build-indep
59
60 build-indep: build install
61         dh_testdir
62         dh_installdirs
63         dh_testroot
64         dh_installchangelogs ChangeLog
65         dh_installdocs
66         dh_installman
67         dh_installexamples
68         dh_link
69         dh_compress -Xexample
70         dh_fixperms -Xdebian/backupninja/etc/backup.d
71         dh_installdeb
72         dh_shlibdeps
73         dh_gencontrol
74         dh_md5sums
75         dh_builddeb
76
77
78 binary: binary-indep binary-arch
79 .PHONY: build clean binary-indep binary-arch binary install configure