X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=debian%2Frules;h=152068d7ac691eb8c6ab1cbda5c1da4da2532248;hb=14168a07d5fbe867b2974490f39a31202637b30b;hp=a21ac867eb1e2d8f53761fe67bd14e288d1992a1;hpb=7e6d52bd936e70147a863bc15df28e0eb3ac9d18;p=hildon diff --git a/debian/rules b/debian/rules index a21ac86..152068d 100755 --- a/debian/rules +++ b/debian/rules @@ -1,15 +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" PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig -DEB_CONFIGURE_EXTRA_FLAGS := --enable-gtk-doc +DEB_CONFIGURE_EXTRA_FLAGS := $(ENABLE_GTK_DOC) --enable-maintainer-mode +DEB_COMPRESS_EXCLUDE := .c -SOURCE_DIR=$(CURDIR) +config.status: $(DEB_SRCDIR)/configure -config.status: $(SOURCE_DIR)/configure +$(DEB_SRCDIR)/configure: + AUTOGEN_SUBDIR_MODE=1 NOCONFIGURE=yes $(DEB_SRCDIR)/autogen.sh -$(SOURCE_DIR)/configure: - AUTOGEN_SUBDIR_MODE=1 NOCONFIGURE=yes $(SOURCE_DIR)/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 )