3 include /usr/share/cdbs/1/class/autotools.mk
4 include /usr/share/cdbs/1/rules/debhelper.mk
6 DEB_DH_STRIP_ARGS := --dbg-package=libembryo-dbg
7 DEB_CONFIGURE_EXTRA_FLAGS := --disable-rpath
8 DEB_CONFIGURE_SCRIPT := ./autogen.sh --prefix=/usr
9 DEB_MAKE_CLEAN_TARGET := distclean
10 DEB_SOURCE_VERSION := $(shell grep AC_INIT $(DEB_SRCDIR)/configure.ac|sed -e 's/AC_INIT(\[embryo\],\ \[\(.*\)\],\ \[.*@.*\])/\1/g')
11 CFLAGS += -fvisibility=hidden
14 cd $(DEB_SRCDIR)/doc && make doc
16 install/libembryo-doc::
17 tar jxf embryo-*-doc.tar.bz2 -C $(DEB_SRCDIR)
18 cp -R $(DEB_SRCDIR)/embryo-$(DEB_SOURCE_VERSION)-doc/doc/html debian/libembryo-doc/usr/share/doc/libembryo-doc/
19 rm -rf $(DEB_SRCDIR)/embryo-$(DEB_SOURCE_VERSION)-doc/
22 [ ! -f Makefile ] || make distclean