#!/usr/bin/make -f DH_VERBOSE := 1 export LC_ALL=C.UTF-8 include /usr/share/dpkg/default.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CXXFLAGS_MAINT_APPEND = -Wall -pedantic -flto -fPIC -D_FILE_OFFSET_BITS=64 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -Wl,-flto %: dh $@ override_dh_install: dh_install d-shlibmove --commit \ --multiarch \ --devunversioned \ --exclude-la \ --movedev debian/tmp/usr/include usr \ --movedev "debian/tmp/usr/lib/*/pkgconfig/*.pc" usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \ debian/tmp/usr/lib/*/*.so mkdir debian/$(DEB_SOURCE)-dev/usr/include/gclib mv debian/$(DEB_SOURCE)-dev/usr/include/*.h* debian/$(DEB_SOURCE)-dev/usr/include/gclib sed -i '/PACKAGE_NAME/d' debian/$(DEB_SOURCE)-dev/usr/include/gclib/config.h # delete header files of not compiled C++ source files find debian/$(DEB_SOURCE)-dev -name gdimg.h -delete find debian/$(DEB_SOURCE)-dev -name GBam.h -delete override_dh_installexamples: dh_installexamples chmod a-x debian/$(DEB_SOURCE)-dev/usr/share/doc/$(DEB_SOURCE)-dev/examples/* override_dh_auto_clean: if [ -r Makefile -a -r Makefile.am ]; then dh_auto_clean; fi rm -f Makefile Makefile.in aclocal.m4 config.h.in configure debian/autoreconf.after debian/autoreconf.before find . -name "*.o" -delete override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) ./mdtest 7TEST^BCT endif