File: rules

package info (click to toggle)
sbuild 0.60.0-2squeeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,136 kB
  • ctags: 640
  • sloc: perl: 14,039; sh: 1,173; sql: 772; makefile: 406
file content (79 lines) | stat: -rwxr-xr-x 1,949 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

debian/build/config.status: configure
	dh_testdir

	[ -d debian/build ] || mkdir debian/build

	cd debian/build; \
	CFLAGS="$(CFLAGS)" ../../configure \
	  --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
	  --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/share \
	  --localstatedir=/var --mandir=\$${prefix}/share/man \
	  DCMD=/usr/bin/dcmd \
	  SCHROOT=/usr/bin/schroot \
	  SSH=/usr/bin/ssh \
	  SUDO=/usr/bin/sudo

build: debian/build/config.status debian/build-stamp
debian/build-stamp:  debian/build/config.status
	dh_testdir

	$(MAKE) -C debian/build all

	touch debian/build-stamp

clean:
	dh_testdir
	dh_testroot

	rm -rf debian/build
	rm -rf debian/install
	rm -f debian/build-stamp

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs

	$(MAKE) -C debian/build install DESTDIR=$(CURDIR)/debian/install

	dh_install
	cp debian/buildd.forward debian/buildd/var/lib/buildd/.forward

# Build architecture-independent files here.
binary-indep: build install
	dh_testdir -i
	dh_testroot -i
	dh_installchangelogs -i ChangeLog
	dh_installdocs -i -A debian/cvslogs.old
	dh_installexamples -i
	dh_installman -i
	dh_installcron -i
	dh_installinit -i --no-start --no-restart-on-upgrade
	dh_perl -i
	dh_link -i
	dh_compress -i
	mv debian/buildd/usr/share/man/man1/buildd-abort.1 \
	  debian/buildd/usr/share/man/man1/buildd-abort.1.gz
	mv debian/buildd/usr/share/man/man8/buildd-make-chroot.8 \
	  debian/buildd/usr/share/man/man8/buildd-make-chroot.8.gz
	mv debian/buildd/usr/share/man/man1/buildd-update-chroots.1 \
	  debian/buildd/usr/share/man/man1/buildd-update-chroots.1.gz
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

# Build architecture-dependent files here.
binary-arch: build install

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install