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 \
23 --with-tclinclude=/usr/include/tcl \
26 LDFLAGS += -Wl,-z,defs -Wl,--as-needed
30 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
37 configure: patch configure-stamp
41 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
42 ./configure $(CONFIGURE_OPTIONS)
46 build: configure build-stamp
47 build-stamp: configure-stamp
52 clean: cleaner unpatch
56 rm -f build-stamp configure-stamp
57 [ ! -f Makefile ] || $(MAKE) distclean
66 $(MAKE) install DESTDIR=$(CURDIR)/debian/tclcurl
67 mkdir $(CURDIR)/debian/tclcurl/usr/lib/tcltk
68 mv $(CURDIR)/debian/tclcurl/usr/lib/TclCurl* \
69 $(CURDIR)/debian/tclcurl/usr/lib/tcltk
71 $(CURDIR)/debian/tclcurl/usr/share/man/mann \
72 $(CURDIR)/debian/tclcurl/usr/bin \
73 $(CURDIR)/debian/tclcurl/usr/include
76 # Build architecture-independent files here.
77 binary-indep: build install
78 # We have nothing to do by default.
80 # Build architecture-dependent files here.
81 binary-arch: build install
84 dh_installdocs Changes.txt
86 dh_installchangelogs ChangeLog.txt
99 binary: binary-indep binary-arch
100 .PHONY: build clean binary-indep binary-arch binary install configure