#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all # clang pulls in atomics that require an extra library on armel ifeq ($(DEB_HOST_ARCH),armel) export DEB_LDFLAGS_MAINT_APPEND=-latomic endif CMAKE_FLAGS = -DCastXML_INSTALL_DOC_DIR:STRING=/usr/share/doc/castxml %: dh $@ override_dh_auto_configure: dh_auto_configure -- $(CMAKE_FLAGS) override_dh_installman: ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) help2man debian/castxml/usr/bin/castxml \ --name "Create an XML representation of C++ declarations" \ --no-info \ > debian/castxml.1 dh_installman debian/castxml.1 rm -vf debian/castxml.1 endif