]> git.sven.stormbind.net Git - sven/tclcurl.git/blob - debian/rules
48d1e8424f897987ec2fd6df7fad64d45a4f82b6
[sven/tclcurl.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
11 configure: patch configure-stamp
12 configure-stamp:
13         dh_testdir
14         ./configure \
15         --host=${DEB_HOST_GNU_TYPE} \
16         --build=${DEB_BUILD_GNU_TYPE} \
17         --prefix=/usr \
18         --mandir=/usr/share/man \
19         --infodir=/usr/share/info \
20         --enable-threads
21         touch configure-stamp
22
23 build: configure build-stamp
24 build-stamp: configure-stamp
25         dh_testdir
26         $(MAKE)
27         touch build-stamp
28
29 clean: cleaner unpatch
30 cleaner:
31         dh_testdir
32         dh_testroot
33         [ ! -f Makefile ] || $(MAKE) distclean
34         rm -f build-stamp configure-stamp   
35         dh_clean
36
37 install: build
38         dh_testdir
39         dh_testroot
40         dh_clean -k
41         dh_installdirs
42         $(MAKE) DESTDIR=`pwd`/debian/tmp install
43         dh_movefiles
44
45 # Build architecture-independent files here.
46 binary-indep: build install
47 # We have nothing to do by default.
48
49 # Build architecture-dependent files here.
50 binary-arch: build install
51         dh_testdir
52         dh_testroot
53         dh_installdocs Changes.txt
54         dh_installexamples
55         dh_installman
56         dh_installchangelogs ChangeLog.txt
57         dh_link
58         dh_strip
59         dh_compress
60         dh_fixperms
61         dh_installdeb
62         dh_shlibdeps
63         tcltk-depends
64         dh_gencontrol
65         dh_md5sums
66         dh_builddeb
67
68 binary: binary-indep binary-arch
69
70 .PHONY: binary binary-arch binary-indep build clean configure install