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 += \
20 --mandir=/usr/share/man \
21 --infodir=/usr/share/info \
24 LDFLAGS += -Wl,-z,defs -Wl,--as-needed
28 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
35 configure: patch configure-stamp
39 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
40 ./configure $(CONFIGURE_OPTIONS)
44 build: configure build-stamp
50 clean: cleaner unpatch
54 rm -f build-stamp configure-stamp
55 [ ! -f Makefile ] || $(MAKE) distclean
64 $(MAKE) install DESTDIR=$(CURDIR)/debian/mysqltcl
65 mkdir $(CURDIR)/debian/mysqltcl/usr/lib/tcltk
66 mv $(CURDIR)/debian/mysqltcl/usr/lib/mysqltcl* \
67 $(CURDIR)/debian/mysqltcl/usr/lib/tcltk
69 $(CURDIR)/debian/mysqltcl/usr/share/man/mann \
70 $(CURDIR)/debian/mysqltcl/usr/bin \
71 $(CURDIR)/debian/mysqltcl/usr/include
74 # Build architecture-independent files here.
75 binary-indep: build install
76 # We have nothing to do by default.
78 # Build architecture-dependent files here.
79 binary-arch: build install
84 dh_installchangelogs ChangeLog
96 binary: binary-indep binary-arch
97 .PHONY: build clean binary-indep binary-arch binary install configure