#!/usr/bin/make -f
-# Path to the debian directory
-DEBIAN_DIR := $(shell echo ${MAKEFILE_LIST} | awk '{print $$1}' | xargs dirname )
-UPSTREAM_VERSION ?=$(shell uscan --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
-PKG = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p')
DATE := $(shell date -u -d "$$(dpkg-parsechangelog -SDate)" +"%Y/%m/%d")
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
CPPFLAGS+=-DBUILD_DATE='"$(DATE)"'
CXXFLAGS+=-std=c++11
-LDFLAGS+=-Wl,--as-needed
%:
- dh $@ --with autoreconf,autotools-dev
+ dh $@
override_dh_autoreconf:
./autogen.sh
override_dh_auto_test:
@echo home: $(HOME)
HOME=/tmp dh_auto_test -a || (grep . test-suite.log giada_test.log; false)
- #make check || (grep . test-suite.log giada_test.log; false)
override_dh_auto_clean:
dh_auto_clean