- cp CHANGELOG changelog
- dh_installdocs --all README TODO changelog debian/copyright
-
- dh_installchangelogs
- dh_link
- dh_strip
- dh_compress -a
- dh_fixperms -a
-
- dh_installdeb -p yaz-runtime
- dh_installdeb -p yaz-devel
- dh_undocumented -p yaz-runtime yaz-client.1 yaz-comp.1 yaz-config.1 yaz-ztest.1 zoomsh.1
- echo "libyaz 1 yaz-runtime" > debian/yaz-runtime/DEBIAN/shlibs
- echo "libyazthread 1 yaz-runtime" >> debian/yaz-runtime/DEBIAN/shlibs
- echo "libyazmalloc 1 yaz-runtime" >> debian/yaz-runtime/DEBIAN/shlibs
- chmod 644 debian/yaz-runtime/DEBIAN/shlibs
- dh_shlibdeps -p yaz-runtime $(LOCAL_LINK)
-ifeq ($(YAZ_WITH_SSL),1)
- dh_installdeb -p yaz-ssl
- dh_undocumented -p yaz-ssl yaz-client-ssl.1 yaz-ztest-ssl.1
- echo "libyazssl 1 yaz-ssl" >> debian/yaz-ssl/DEBIAN/shlibs
- chmod 644 debian/yaz-ssl/DEBIAN/shlibs
- dh_shlibdeps -p yaz-ssl $(LOCAL_LINK)
- cat debian/postinst >> debian/yaz-ssl/DEBIAN/postinst
-endif
- # Ugh Ugly hack
- cat debian/postinst >> debian/yaz-runtime/DEBIAN/postinst
-
- dh_gencontrol -p yaz-runtime
- dh_md5sums -p yaz-runtime
-
- dh_gencontrol -p yaz-devel
- dh_md5sums -p yaz-devel
-
-ifeq ($(YAZ_WITH_SSL),1)
- dh_gencontrol -p yaz-ssl
- dh_md5sums -p yaz-ssl
-endif
- # Go kill those CVS-dirs before build
- -find debian/tmp -type d -name CVS | xargs rm -rf
- # For some reason it is necessary to remove empty-dirs in yaz-doc
- -rm -rf debian/tmp/usr/include debian/tmp/usr/share/aclocal debian/tmp/usr/lib debian/tmp/usr/bin \
- debian/tmp/usr/share/yaz
-
- dh_builddeb -p yaz-runtime
- dh_builddeb -p yaz-devel
-ifeq ($(YAZ_WITH_SSL),1)
- dh_builddeb -p yaz-ssl
-endif
-
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install install-stamp configure
-
-yazrelease:
- # Conveniency target for building both SSL and non-ssl versions
- dh_testdir
- # Non-ssl version and source
- dpkg-buildpackage $(EXTRA_OPTS) -rfakeroot
- # SSL version
- -YAZ_WITH_SSL=1 dpkg-buildpackage $(EXTRA_OPTS) -rfakeroot -B