Subversion Repositories

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

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

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