Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 9 | Rev 40 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9 Rev 12
1
#!/usr/bin/make -f
1
#!/usr/bin/make -f
2
2
3
export LIBTOOLIZE = libtoolize --install
3
export LIBTOOLIZE = libtoolize --install
4
4
5
configure: configure-stamp
5
configure: configure-stamp
6
configure-stamp:
6
configure-stamp:
7
	dh_testdir
7
	dh_testdir
8
	[ -f debian/autoreconf.before ] || dh_autoreconf
8
	[ -f debian/autoreconf.before ] || dh_autoreconf
9
	./configure \
9
	./configure \
10
		--prefix=/usr \
10
		--prefix=/usr \
11
		--mandir=\$${prefix}/share/man 
11
		--mandir=\$${prefix}/share/man \
-
 
12
		$(shell dpkg-buildflags --export=configure)
12
	touch configure-stamp
13
	touch configure-stamp
13
14
14
build-arch: build
15
build-arch: build
15
build-indep:
16
build-indep:
16
build: build-stamp
17
build: build-stamp
17
build-stamp: configure-stamp 
18
build-stamp: configure-stamp 
18
	dh_testdir
19
	dh_testdir
19
	$(MAKE)
20
	$(MAKE)
20
	touch build-stamp
21
	touch build-stamp
21
22
22
clean:
23
clean:
23
	dh_testdir
24
	dh_testdir
24
	dh_testroot
25
	dh_testroot
25
	# Stale build files
26
	# Stale build files
26
	[ ! -f Makefile ] || $(MAKE) distclean
27
	[ ! -f Makefile ] || $(MAKE) distclean
27
	-rm -f build-stamp configure-stamp
28
	-rm -f build-stamp configure-stamp
28
	dh_autoreconf_clean
29
	dh_autoreconf_clean
29
	dh_clean libtool configure
30
	dh_clean libtool configure
30
31
31
install: build-stamp
32
install: build-stamp
32
	dh_testdir
33
	dh_testdir
33
	dh_testroot
34
	dh_testroot
34
	dh_prep
35
	dh_prep
35
36
36
	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
37
	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
37
38
38
binary-indep:
39
binary-indep:
39
40
40
binary-arch: install
41
binary-arch: install
41
	dh_testdir
42
	dh_testdir
42
	dh_testroot
43
	dh_testroot
43
	dh_install --sourcedir=debian/tmp
44
	dh_install --sourcedir=debian/tmp
44
45
45
	dh_installdocs
46
	dh_installdocs
46
	dh_installexamples
47
	dh_installexamples
47
	dh_installman 
48
	dh_installman 
48
	dh_installchangelogs ChangeLog
49
	dh_installchangelogs ChangeLog
49
	dh_link
50
	dh_link
50
	dh_strip
51
	dh_strip
51
	dh_compress
52
	dh_compress
52
	dh_fixperms
53
	dh_fixperms
53
	dh_makeshlibs
54
	dh_makeshlibs
54
	dh_installdeb
55
	dh_installdeb
55
	dh_shlibdeps
56
	dh_shlibdeps
56
	dh_gencontrol
57
	dh_gencontrol
57
	dh_md5sums
58
	dh_md5sums
58
	dh_builddeb
59
	dh_builddeb
59
60
60
binary: binary-indep binary-arch
61
binary: binary-indep binary-arch
61
.PHONY: build clean binary-indep binary-arch binary install configure
62
.PHONY: build clean binary-indep binary-arch binary install configure