~chromium-team/chromium-browser/artful-beta

1 by Fabien Tassin
* Initial revision
1
# -*- mode: makefile; coding: utf-8 -*-
2
# Copyright © 2008, Fabien Tassin <fta@sofaraway.org>
3
# Description: A class to build scons packages
4
#
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.
9
#
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.
14
#
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.
18
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
22
23
ifndef _cdbs_class_scons
24
_cdbs_class_scons = 1
25
26
SCONS ?= scons
27
28
common-build-arch common-build-indep:: debian/stamp-scons-build
3 by Fabien Tassin
* Fix cdbs scons build rule
29
debian/stamp-scons-build:
1 by Fabien Tassin
* Initial revision
30
	cd $(DEB_BUILDDIR) && $(DEB_SCONS_ENVVARS) $(SCONS) $(DEB_SCONS_ARGS)
52 by Fabien Tassin
* Add the missing stamp file in the scons build rule
31
	touch $@
1 by Fabien Tassin
* Initial revision
32
33
### There's no install rule yet
34
#common-install-arch common-install-indep:: common-install-impl
35
#common-install-impl::
36
#	cd $(DEB_BUILDDIR) && $(DEB_SCONS_ENVVARS) DESTDIR=$(DEB_DESTDIR) $(SCONS) $(DEB_SCONS_INSTALL_ARGS) install
37
38
clean::
39
	cd $(DEB_BUILDDIR) && $(DEB_SCONS_ENVVARS) $(SCONS) $(DEB_SCONS_CLEAN_ARGS) --keep-going --clean || true
3 by Fabien Tassin
* Fix cdbs scons build rule
40
	rm -f debian/stamp-scons-build
1 by Fabien Tassin
* Initial revision
41
42
endif