3 # Uncomment this to turn on verbose mode.
6 include /usr/share/quilt/quilt.make
9 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
10 CONFIGURE_OPTIONS += --build $(DEB_HOST_GNU_TYPE)
12 CONFIGURE_OPTIONS += --build $(DEB_BUILD_GNU_TYPE) \
13 --host $(DEB_HOST_GNU_TYPE)
17 CONFIGURE_OPTIONS += \
19 --mandir=/usr/share/man \
20 --infodir=/usr/share/info \
24 LDFLAGS += -Wl,-z,defs -Wl,--as-needed
28 ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
35 configure: patch configure-stamp
39 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
40 ./configure $(CONFIGURE_OPTIONS)
44 build: configure build-stamp
45 build-stamp: configure-stamp
50 clean: cleaner unpatch
54 rm -f build-stamp configure-stamp
55 [ ! -f Makefile ] || $(MAKE) distclean
64 $(MAKE) install DESTDIR=$(CURDIR)/debian/tclcurl
66 # Build architecture-independent files here.
67 binary-indep: build install
68 # We have nothing to do by default.
70 # Build architecture-dependent files here.
71 binary-arch: build install
74 dh_installdocs Changes.txt
76 dh_installchangelogs ChangeLog.txt
88 binary: binary-indep binary-arch
90 .PHONY: build clean binary-arch binary-indep binary install configure