1
# -*- mode: makefile; coding: utf-8 -*-
2
# Copyright © 2008, Fabien Tassin <fta@sofaraway.org>
3
# Description: A class to build scons packages
5
# This program is free software; you can redistribute it and/or
6
# modify it under the terms of the GNU General Public License as
7
# published by the Free Software Foundation; either version 2, or (at
8
# your option) any later version.
10
# This program is distributed in the hope that it will be useful, but
11
# WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
# General Public License for more details.
15
# You should have received a copy of the GNU General Public License along
16
# with this program; if not, write to the Free Software Foundation, Inc.,
17
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
_cdbs_scripts_path ?= /usr/lib/cdbs
20
_cdbs_rules_pat ?= /usr/share/cdbs/1/rules
21
_cdbs_class_path ?= /usr/share/cdbs/1/class
23
ifndef _cdbs_class_scons
28
common-build-arch common-build-indep:: debian/stamp-scons-build
30
cd $(DEB_BUILDDIR) && $(DEB_SCONS_ENVVARS) $(SCONS) $(DEB_SCONS_ARGS)
32
### There's no install rule yet
33
#common-install-arch common-install-indep:: common-install-impl
34
#common-install-impl::
35
# cd $(DEB_BUILDDIR) && $(DEB_SCONS_ENVVARS) DESTDIR=$(DEB_DESTDIR) $(SCONS) $(DEB_SCONS_INSTALL_ARGS) install
38
cd $(DEB_BUILDDIR) && $(DEB_SCONS_ENVVARS) $(SCONS) $(DEB_SCONS_CLEAN_ARGS) --keep-going --clean || true