Adding a special '--enable-xan' configure option that turns off the -Werror compilati...
[hildon] / debian / rules
index 1e17396..49619c0 100755 (executable)
@@ -69,6 +69,7 @@ clean:
        dh_testdir
        dh_testroot
        rm -f build-stamp 
+       rm -rf debian/build
 #      Add here commands to clean up after the build process.
        -$(MAKE) distclean
 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
@@ -89,6 +90,10 @@ install: build
 #      Add here commands to install the package into debian/build
        $(MAKE) install DESTDIR=$(CURDIR)/debian/build
 
+       ln -s -f libhildon-1.so $(CURDIR)/debian/build/usr/lib/libhildon_1.so 
+       ln -s -f libhildon-1.so.0 $(CURDIR)/debian/build/usr/lib/libhildon_1.so.0
+       ln -s -f libhildon-1.so.0.0.0 $(CURDIR)/debian/build/usr/lib/libhildon_1.so.0.0.0 
+
 #      for the -dbg package
        rm -rf $(CURDIR)/debian/build/usr/lib/debug
 #      -mkdir -p $(CURDIR)/debian/build/usr/lib/debug
@@ -103,20 +108,22 @@ binary-indep: build install
 binary-arch: build install
        dh_testdir
        dh_testroot
+       dh_installdocs
        dh_installchangelogs 
 #      dh_installexamples
-       @if [ "x$(ENABLE_GTK_DOC)" != "x" ]; then \
-           dh_installdocs;                       \
-       else                                      \
-           echo "oh nooooooo, no gtk-doc :(";    \
+       @if [ -d debian/build/usr/share/gtk-doc ]; then         \
+         echo "Installing gtk-doc" ;                           \
+         dh_install --sourcedir=debian/build -v ;              \
+       else                                                    \
+         echo "Skipping gtk-doc" ;                             \
+         dh_install --sourcedir=debian/build -v -Xgtk-doc ;    \
        fi
-       dh_install --sourcedir=debian/build -v
        dh_installman
        dh_link
        dh_strip --dbg-package="libhildon1"
        dh_compress
        dh_fixperms
-       dh_makeshlibs -V
+       dh_makeshlibs -V "libhildon1 (>= 1.0.3)" 
        dh_installdeb
        dh_shlibdeps
        dh_gencontrol