X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=debian%2Frules;h=152068d7ac691eb8c6ab1cbda5c1da4da2532248;hb=14168a07d5fbe867b2974490f39a31202637b30b;hp=b94021152c58a977854984d12206c8b7dd09b092;hpb=0eb3974739cbedb455887e210c78523c4971f7ae;p=hildon diff --git a/debian/rules b/debian/rules index b940211..152068d 100755 --- a/debian/rules +++ b/debian/rules @@ -1,11 +1,28 @@ #!/usr/bin/make -f +include /usr/share/cdbs/1/rules/buildvars.mk + +ifeq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS))) +ENABLE_GTK_DOC = --enable-gtk-doc +else +ENABLE_GTK_DOC = --disable-gtk-doc +DEB_INDEP_PACKAGES := $(subst libhildon1-doc,,$(DEB_INDEP_PACKAGES)) +endif + include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/utils.mk -DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,-O1 -Wl,--as-needed" -DEB_CONFIGURE_EXTRA_FLAGS := --enable-gtk-doc +DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig +DEB_CONFIGURE_EXTRA_FLAGS := $(ENABLE_GTK_DOC) --enable-maintainer-mode +DEB_COMPRESS_EXCLUDE := .c + +config.status: $(DEB_SRCDIR)/configure + +$(DEB_SRCDIR)/configure: + AUTOGEN_SUBDIR_MODE=1 NOCONFIGURE=yes $(DEB_SRCDIR)/autogen.sh -makebuilddir:: - AUTOGEN_SUBDIR_MODE=1 NOCONFIGURE=yes ./autogen.sh +binary-post-install/libhildon1-examples:: + ( cd $(DEB_SRCDIR)/debian/libhildon1-examples/usr/share/doc/libhildon1-examples/examples && \ + sed -i 's_"hildon.h"__' *.c && \ + mv Makefile.static Makefile )