#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ') CFLAGS=$(shell echo $$CFLAGS | sed -e 's/\-Wall//') CORE_ABIVERSION := $(shell sed -rn 's/^\#define[[:space:]]+CORE_ABIVERSION[[:space:]]+//p' /usr/include/compiz/core/core.h ) override_dh_auto_configure: dh_auto_configure -- -DCOMPIZ_BUILD_WITH_RPATH=FALSE -DCOMPIZ_PACKAGING_ENABLED=TRUE -DCOMPIZ_PLUGIN_INSTALL_TYPE=package override_dh_install: find debian/tmp/usr/lib -name \*.*a -exec rm {} \; dh_install --fail-missing override_dh_gencontrol: dh_gencontrol -- -Vcoreabiversion=$(CORE_ABIVERSION) # override netbook-launcher on i386 to get an epoch rm -f debian/netbook-launcher/DEBIAN/control dh_gencontrol -pnetbook-launcher -- -Vcoreabiversion=$(CORE_ABIVERSION) -v2:$(DEB_VERSION) override_dh_auto_test: echo "not working right now" %: dh $@