#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2015 IOhannes m zmölnig <zmoelnig@iem.at>
# Description: Main Debian packaging script for CREB
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/cdbs/1/class/pd.mk
include /usr/share/cdbs/1/rules/utils.mk

## no 'check' and broken 'install' target
DEB_MAKE_INSTALL_TARGET =
DEB_MAKE_CHECK_TARGET =
## use 'clean' instead of 'distclean'
DEB_MAKE_CLEAN_TARGET = clean

DEB_INSTALL_CHANGELOGS_ALL=CHANGES.LOG

#CDBS_BUILD_DEPENDS_rules_utils_copyright-check =
#CDBS_BUILD_DEPENDS_rules_utils_buildinfo =

#DEB_CONFIGURE_EXTRA_FLAGS +=

export EXTRA_CFLAGS=$(CPPFLAGS) -I/usr/include/pd $(CFLAGS)
export EXTRA_LDFLAGS=$(LDFLAGS)

clean::
	-rm -f config.log config.status
	-rm -f Makefile.config
