#!/usr/bin/make -f # Copyright © 2002,2003 Colin Walters # Copyright © 2003 Daniel Stone # Copyright © 2006 Sjoerd Simons include /usr/share/cdbs/1/rules/patchsys-quilt.mk include /usr/share/cdbs/1/rules/utils.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk libdbusN := $(shell sed -rn 's/Package:[[:space:]]*(libdbus-[0-9-]+)[[:space:]]*$$/\1/p' debian/control | head -n 1) DEB_DH_MAKESHLIBS_ARGS_ALL = -V '$(libdbusN) (>= 1.2.14)' LDFLAGS += -Wl,--as-needed # List any files which are not installed common-binary-post-install-arch:: list-missing DEB_CONFIGURE_LIBEXECDIR := "\$${prefix}/lib/dbus-1.0" DEB_CONFIGURE_EXTRA_FLAGS += \ --enable-xml-docs \ --enable-doxygen-docs DEB_DH_INSTALLINIT_ARGS := -r -- start 12 2 3 4 5 . stop 88 1 . ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel i386)) common-configure-impl:: # workaround for a bug in binutils on mipsen (see #532821 and #528145) sed -i -e 's/\-fPIE//' -e 's/\-pie\ \-Wl\,\-z\,relro//' bus/Makefile endif binary-post-install/dbus-x11:: mkdir -p debian/dbus-x11/etc/X11/Xsession.d cp debian/dbus-Xsession debian/dbus-x11/etc/X11/Xsession.d/75dbus_dbus-launch build/dbus-1-doc:: doxygen Doxyfile xsltproc -o dbus.devhelp debian/doxygen_to_devhelp.xsl doc/api/xml/index.xml clean:: rm -rf doc/api rm -f test/data/valid-config-files/session.conf rm -f test/data/valid-config-files/system.conf rm -f doc/*.html rm -f dbus.devhelp