]> git.sven.stormbind.net Git - sven/mysqltcl.git/blob - debian/rules
[svn-inject] Applying Debian modifications to trunk
[sven/mysqltcl.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 include /usr/share/quilt/quilt.make
7
8 LDFLAGS += -Wl,-z,defs -Wl,--as-needed
9
10 configure: patch configure-stamp
11 configure-stamp:
12         dh_testdir
13         ./configure \
14                 --prefix=/usr
15                 --enable-threads
16
17         touch configure-stamp
18
19 build: configure build-stamp
20 build-stamp:
21         dh_testdir
22
23         $(MAKE)
24         touch build-stamp
25
26 clean: cleaner unpatch
27 cleaner:
28         dh_testdir
29         dh_testroot
30         rm -f build-stamp configure-stamp
31
32         [ ! -f Makefile ] || $(MAKE) distclean
33         dh_clean
34
35 install: build
36         dh_testdir
37         dh_testroot
38         dh_clean -k
39         dh_installdirs
40
41         $(MAKE) install DESTDIR=$(CURDIR)/debian/mysqltcl/
42
43
44 # Build architecture-independent files here.
45 binary-indep: build install
46 # We have nothing to do by default.
47
48 # Build architecture-dependent files here.
49 binary-arch: build install
50         dh_testdir
51         dh_testroot
52         dh_installdocs
53         dh_installexamples
54         dh_installman
55         dh_installchangelogs ChangeLog
56         dh_link
57         dh_strip
58         dh_compress
59         dh_fixperms
60         dh_installdeb
61         dh_shlibdeps
62         tcltk-depends
63         dh_gencontrol
64         dh_md5sums
65         dh_builddeb
66
67 binary: binary-indep binary-arch
68 .PHONY: build clean binary-indep binary-arch binary install configure