* Reworked debian/rules partly to make it a little bit clearer.
authorSven Hoexter <sven@timegate.de>
Tue, 25 Dec 2007 18:39:30 +0000 (18:39 +0000)
committerSven Hoexter <sven@timegate.de>
Tue, 25 Dec 2007 18:39:30 +0000 (18:39 +0000)
debian/changelog
debian/rules

index d5871a6553b0f1263bfd5265a5604e434cbede70..d3e73f7430a55a1b0a0a57c97d632434e7ab4bb3 100644 (file)
@@ -8,8 +8,9 @@ mysqltcl (3.03-1) unstable; urgency=low
   * Use tcltk-depends to depend on the right Tcl version.
   * Switched to use quilt to manage the patches.
   * Added Vcs-Svn field to control.
+  * Reworked debian/rules partly to make it a little bit clearer.
 
- --
+ -- Sven Hoexter <sven@timegate.de>  Tue, 25 Dec 2007 19:34:08 +0100
 
 mysqltcl (3.02-1) unstable; urgency=low
 
index 439bc930e95ddbfbcec6e4e589828f63709cf525..c62250bc0a2ffa501b10199e4121fd8f275367df 100755 (executable)
@@ -5,21 +5,45 @@
 
 include /usr/share/quilt/quilt.make
 
+
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+        CONFIGURE_OPTIONS += --build $(DEB_HOST_GNU_TYPE)
+else
+        CONFIGURE_OPTIONS += --build $(DEB_BUILD_GNU_TYPE) \
+                --host $(DEB_HOST_GNU_TYPE)
+endif
+
+
+CONFIGURE_OPTIONS += \
+               --prefix=/usr \
+               --enable-threads \
+               --mandir=/usr/share/man \
+               --infodir=/usr/share/info \
+
+
 LDFLAGS += -Wl,-z,defs -Wl,--as-needed
 
+CFLAGS += -Wall -g
+
+ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -O2
+else
+        CFLAGS += -O0
+endif
+
+
 configure: patch configure-stamp
 configure-stamp:
        dh_testdir
-       ./configure \
-               --prefix=/usr
-               --enable-threads
+
+       CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
+       ./configure $(CONFIGURE_OPTIONS)
 
        touch configure-stamp
 
 build: configure build-stamp
 build-stamp:
        dh_testdir
-
        $(MAKE)
        touch build-stamp
 
@@ -28,7 +52,6 @@ cleaner:
        dh_testdir
        dh_testroot
        rm -f build-stamp configure-stamp
-
        [ ! -f Makefile ] || $(MAKE) distclean
        dh_clean
 
@@ -50,7 +73,6 @@ binary-arch: build install
        dh_testdir
        dh_testroot
        dh_installdocs
-       dh_installexamples
        dh_installman
        dh_installchangelogs ChangeLog
        dh_link