Subversion Repositories

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

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

Rev 20 Rev 23
1
#!/usr/bin/make -f
1
#!/usr/bin/make -f
2
#-*- makefile -*-
2
#-*- makefile -*-
3
# Made with the aid of dh_make, by Craig Small
3
# Made with the aid of dh_make, by Craig Small
4
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
5
# Some lines taken from debmake, by Christoph Lameter.
5
# Some lines taken from debmake, by Christoph Lameter.
6
6
7
# Uncomment this to turn on verbose mode.
7
# Uncomment this to turn on verbose mode.
8
#export DH_VERBOSE=1
8
#export DH_VERBOSE=1
9
9
10
PACKAGE := $(shell dh_listpackages)
10
PACKAGE := $(shell dh_listpackages)
11
11
12
PERL     = /usr/bin/perl
12
PERL     = /usr/bin/perl
13
13
14
TMP     := $(CURDIR)/debian/$(PACKAGE)
14
TMP     := $(CURDIR)/debian/$(PACKAGE)
15
15
16
build: build-stamp
16
build: build-stamp
17
build-stamp:
17
build-stamp:
18
	dh_testdir
18
	dh_testdir
19
19
20
	$(PERL) Makefile.PL INSTALLDIRS=vendor
20
	$(PERL) Makefile.PL INSTALLDIRS=vendor
21
	$(MAKE)
21
	$(MAKE)
22
	$(MAKE) test || true
22
	-$(MAKE) test
23
	touch build-stamp
23
	touch build-stamp
24
24
25
clean:
25
clean:
26
	dh_testdir
26
	dh_testdir
27
	dh_testroot
27
	dh_testroot
28
	rm -f build-stamp
28
	rm -f build-stamp
29
29
30
	[ ! -f Makefile ] || $(MAKE) realclean
30
	[ ! -f Makefile ] || $(MAKE) realclean
31
31
32
	dh_clean
32
	dh_clean
33
33
34
install: 
34
install: 
35
	dh_testdir
35
	dh_testdir
36
	dh_testroot
36
	dh_testroot
37
	dh_clean -k
37
	dh_clean -k
38
	dh_installdirs
38
	dh_installdirs
39
39
40
	$(MAKE) install DESTDIR=$(TMP)/
40
	$(MAKE) install DESTDIR=$(TMP)/
41
41
42
        # Remove any empty directories
42
        # Remove any empty directories
43
	find $(TMP)/usr -depth -type d -empty -exec rmdir '{}' ';'
43
	find $(TMP)/usr -depth -type d -empty -exec rmdir '{}' ';'
44
44
45
# Build architecture-dependent files here.
45
# Build architecture-dependent files here.
46
binary-arch:
46
binary-arch:
47
	dh_testdir
-
 
48
	touch debian/files
-
 
49
# We have nothing to do by default.
47
# We have nothing to do by default.
50
48
51
# Build architecture-independent files here.
49
# Build architecture-independent files here.
52
binary-indep: build install
50
binary-indep: build install
53
	dh_testdir
51
	dh_testdir
54
	dh_testroot
52
	dh_testroot
55
	dh_installdocs
53
	dh_installdocs
56
	dh_installman
54
	dh_installman
57
	dh_installchangelogs -k ChangeLog
55
	dh_installchangelogs -k ChangeLog
58
	dh_link
56
	dh_link
59
	dh_compress usr/share/doc/$(PACKAGE)/Changes
57
	dh_compress usr/share/doc/$(PACKAGE)/Changes
60
	dh_fixperms
58
	dh_fixperms
61
	dh_installdeb
59
	dh_installdeb
62
	dh_perl
60
	dh_perl
63
	dh_gencontrol
61
	dh_gencontrol
64
	dh_md5sums
62
	dh_md5sums
65
	dh_builddeb
63
	dh_builddeb
66
64
67
binary: binary-indep
65
binary: binary-indep
68
.PHONY: build clean binary-indep binary-arch binary
66
.PHONY: build clean binary-indep binary-arch binary