#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/architecture.mk

include /usr/share/dpkg/buildflags.mk

ifneq (,$(findstring arm,$(DEB_HOST_ARCH)))
	CXXFLAGS += -O0
	export CXXFLAGS
endif

%:
	dh $@  --with autoreconf

override_dh_clean:
	rm -f libcmis-0.4.pc
	rm -f cmis-client.1
	dh_clean

override_dh_auto_configure:
	dh_auto_configure -- --disable-long-tests --disable-werror --disable-silent-rules

override_dh_auto_build:
	$(MAKE)

override_dh_auto_test:
	$(MAKE) check

override_dh_auto_install:
	dh_auto_install
	find debian -name "*mockup*so*" -exec rm -f {} \;
