2008-12-16 Alberto Garcia <agarcia@igalia.com>
[hildon] / debian / rules
1 #!/usr/bin/make -f
2
3 include /usr/share/cdbs/1/rules/debhelper.mk
4 include /usr/share/cdbs/1/class/autotools.mk
5 include /usr/share/cdbs/1/rules/utils.mk
6
7 DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig
8 DEB_CONFIGURE_EXTRA_FLAGS := --enable-gtk-doc --enable-maintainer-mode
9 DEB_COMPRESS_EXCLUDE := .c
10
11 config.status: $(DEB_SRCDIR)/configure
12
13 $(DEB_SRCDIR)/configure:
14         AUTOGEN_SUBDIR_MODE=1 NOCONFIGURE=yes $(DEB_SRCDIR)/autogen.sh
15
16 binary-post-install/libhildon1-examples::
17         ( cd $(DEB_SRCDIR)/debian/libhildon1-examples/usr/share/doc/libhildon1-examples/examples && \
18         sed -i 's_"hildon.h"_<hildon/hildon.h>_' *.c && \
19         mv Makefile.static Makefile )