#!/usr/bin/make -f

CFLAGS += $(shell dpkg-buildflags --get CFLAGS)
CPPFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS += $(shell dpkg-buildflags --get LDFLAGS)
export CPPFLAGS CFLAGS LDFLAGS

CPPFLAGS += -DDATE="\"$(shell dpkg-parsechangelog -S Date | cut -d' ' -f1-4)\""

%:
	dh $@

override_dh_fixperms:
	dh_fixperms
	# Upstream is setting everything to executables.
	chmod a-x debian/ipband/usr/share/doc/ipband/examples/styles.css
