File: rules

package info (click to toggle)
libmodplug 1%3A0.8.4-1%2Blenny2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,344 kB
  • ctags: 2,855
  • sloc: cpp: 25,699; sh: 8,111; ansic: 194; makefile: 131
file content (100 lines) | stat: -rwxr-xr-x 2,062 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

CC=gcc
CXX=g++
PACKAGE=libmodplug0c2
LIBRARY=libmodplug0c2
DEV=libmodplug-dev
major=0
version=0.0.0

configure: configure-stamp
configure-stamp:
	dh_testdir

	libtoolize --copy --force
	aclocal
	autoconf
	autoheader
	automake --add-missing --copy

	CC=$(CC) CXX=$(CXX) CFLAGS="-O2" CXXFLAGS="-O2" \
	./configure --prefix=/usr \
		--mandir=\$${prefix}/share/man \
		--infodir=\$${prefix}/share/info

	touch configure-stamp

build: build-stamp
build-stamp: configure-stamp
	dh_testdir
	$(MAKE)
	touch build-stamp

clean:
	dh_testdir
	-$(MAKE) distclean
	rm -f build-stamp configure-stamp
	rm -f config.guess config.sub ltconfig ltmain.sh conftest conftest.o
	rm -f aclocal.m4 config.h.in configure config.log
	rm -f Makefile.in src/Makefile.in 
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	$(MAKE) install DESTDIR=`pwd`/debian/$(DEV)
	cp src/libmodplug/*.h `pwd`/debian/$(DEV)/usr/include/libmodplug
	rm `pwd`/debian/$(DEV)/usr/lib/libmodplug.la

	dh_movefiles --sourcedir=debian/$(DEV) -p$(LIBRARY) \
		usr/lib/libmodplug.so.$(major)        \
		usr/lib/libmodplug.so.$(version)

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdocs -i
	dh_installexamples -i
	dh_installcron -i
	dh_installman -i
	dh_installinfo -i
	dh_installchangelogs -i ChangeLog
	dh_link -i
	dh_strip -i
	dh_compress -i
	dh_fixperms -i
	dh_makeshlibs -i -V"libmodplug0c2 (>= 1:0.7-4.1)"
	dh_installdeb -i
	dh_shlibdeps -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdocs -a
	dh_installexamples -a
	dh_installcron -a
	dh_installman -a
	dh_installinfo -a
	dh_installchangelogs -a ChangeLog
	dh_link -a
	dh_strip -a
	dh_compress -a
	dh_fixperms -a
	dh_makeshlibs -a -V"libmodplug0c2 (>= 1:0.7-4.1)"
	dh_installdeb -a
	dh_shlibdeps -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

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