]> git.sven.stormbind.net Git - sven/tclcurl.git/blob - debian/rules
Override dh_clean to not remove autom4te.cache and other left-overs from
[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 LDFLAGS += -Wl,-z,defs -Wl,--as-needed
7
8 %:
9         dh $@ --with quilt
10
11 override_dh_clean:
12         dh_clean -Xautom4te.cache -Xtests/a.tcl~
13
14 override_dh_auto_configure:
15         dh_auto_configure -- \
16                 --prefix=/usr \
17                 --mandir=/usr/share/man \
18                 --infodir=/usr/share/info \
19                 --enable-threads \
20                 --with-tcl=/usr/lib \
21                 --with-tclinclude=/usr/include/tcl \
22
23 override_dh_auto_install:
24         dh_auto_install --destdir=$(CURDIR)/debian/tclcurl
25
26         mkdir $(CURDIR)/debian/tclcurl/usr/lib/tcltk
27         mv $(CURDIR)/debian/tclcurl/usr/lib/TclCurl* \
28                 $(CURDIR)/debian/tclcurl/usr/lib/tcltk
29         rm -rf \
30                 $(CURDIR)/debian/tclcurl/usr/share/man/mann \
31                 $(CURDIR)/debian/tclcurl/usr/bin \
32                 $(CURDIR)/debian/tclcurl/usr/include
33
34         chmod 644 \
35                 $(CURDIR)/tests/*.tcl \
36                 $(CURDIR)/tests/multi/double.tcl \
37                 $(CURDIR)/tests/multi/single.tcl
38
39 override_dh_makeshlibs:
40         dh_makeshlibs
41         tcltk-depends