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 $(CURDIR)/debian/tclcurl/usr/share/man/mann \
67 $(CURDIR)/debian/tclcurl/usr/bin \
68 $(CURDIR)/debian/tclcurl/usr/include
71 # Build architecture-independent files here.
72 binary-indep: build install
73 # We have nothing to do by default.
75 # Build architecture-dependent files here.
76 binary-arch: build install
79 dh_installdocs Changes.txt
81 dh_installchangelogs ChangeLog.txt
93 binary: binary-indep binary-arch
94 .PHONY: build clean binary-indep binary-arch binary install configure