~daniel.bueltmann/openwns-wrowser/openwns-wrowser-debian

« back to all changes in this revision

Viewing changes to cdbs/1/class/scons.mk

  • Committer: Daniel Bültmann
  • Date: 2010-10-24 14:07:12 UTC
  • Revision ID: me@daniel-bueltmann.de-20101024140712-jf18y58ujtu7e0mg
Initial import of packaging information for wrowser (./debian directory)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- mode: makefile; coding: utf-8 -*-
 
2
# Copyright © 2005 Matthew A. Nicholson <matt@matt-land.com>
 
3
# Copyright © 2008,2010 Jonas Smedegaard <dr@jones.dk>
 
4
# Description: Builds and cleans SCons (SConstruct file) packages
 
5
#
 
6
# This program is free software; you can redistribute it and/or
 
7
# modify it under the terms of the GNU General Public License as
 
8
# published by the Free Software Foundation; either version 2, or (at
 
9
# your option) any later version.
 
10
#
 
11
# This program is distributed in the hope that it will be useful, but
 
12
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
# General Public License for more details.
 
15
#
 
16
# You should have received a copy of the GNU General Public License
 
17
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
 
 
19
_cdbs_scripts_path ?= /usr/local/libexec
 
20
_cdbs_rules_path ?= /usr/local/share/cdbs/1/rules
 
21
_cdbs_class_path ?= /usr/local/share/cdbs/1/class
 
22
 
 
23
ifndef _cdbs_class_scons
 
24
_cdbs_class_scons = 1
 
25
 
 
26
include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
 
27
include $(CURDIR)/debian/cdbs/1/class/scons-vars.mk$(_cdbs_makefile_suffix)
 
28
 
 
29
CDBS_BUILD_DEPENDS_class_scons ?= scons
 
30
CDBS_BUILD_DEPENDS += , $(CDBS_BUILD_DEPENDS_class_scons)
 
31
 
 
32
DEB_PHONY_RULES += scons-clean
 
33
 
 
34
common-build-arch common-build-indep:: debian/stamp-scons-build
 
35
debian/stamp-scons-build:
 
36
        $(DEB_SCONS_INVOKE) $(DEB_SCONS_BUILD_TARGET) $(DEB_SCONS_OPTIONS) $(DEB_SCONS_BUILD_OPTIONS)
 
37
        touch debian/stamp-scons-build
 
38
 
 
39
clean:: scons-clean
 
40
scons-clean::
 
41
        $(DEB_SCONS_INVOKE) $(DEB_SCONS_CLEAN_TARGET) $(DEB_SCONS_OPTIONS) --keep-going --clean || true
 
42
        rm -f debian/stamp-scons-build
 
43
        rm -rf .sconf_temp/
 
44
        rm -f .sconsign.dblite config.log
 
45
 
 
46
common-install-arch common-install-indep:: common-install-impl
 
47
common-install-impl::
 
48
        @if test -n "$(DEB_SCONS_INSTALL_TARGET)"; then \
 
49
          echo $(DEB_SCONS_INVOKE) $(DEB_SCONS_INSTALL_TARGET) $(DEB_SCONS_OPTIONS) $(DEB_SCONS_INSTALL_OPTIONS); \
 
50
          $(DEB_SCONS_INVOKE) $(DEB_SCONS_INSTALL_TARGET) $(DEB_SCONS_OPTIONS) $(DEB_SCONS_INSTALL_OPTIONS); \
 
51
        else \
 
52
          echo "DEB_SCONS_INSTALL_TARGET unset, skipping default scons.mk common-install target"; \
 
53
        fi
 
54
 
 
55
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 
56
common-post-build-arch common-post-build-indep:: common-post-build-impl
 
57
common-post-build-impl::
 
58
        @if test -n "$(DEB_SCONS_CHECK_TARGET)"; then \
 
59
          echo $(DEB_SCONS_INVOKE) $(DEB_SCONS_CHECK_TARGET); \
 
60
          $(DEB_SCONS_INVOKE) $(DEB_SCONS_CHECK_TARGET) $(DEB_SCONS_OPTIONS); \
 
61
        else \
 
62
           echo "DEB_SCONS_CHECK_TARGET unset, not running checks"; \
 
63
        fi
 
64
endif
 
65
 
 
66
endif