~ubuntu-branches/ubuntu/feisty/basilisk2/feisty

« back to all changes in this revision

Viewing changes to debian/cdbs/1/rules/auto-update.mk

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2006-06-01 01:11:16 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060601011116-xjhegbgyfsxag5fl
Tags: 0.9.20060529-1
* New upstream CVS snapshot.
* Update local cdbs snippet copyright-check.mk:
  + Broaden scan to also look for "(c)" by default.
  + Make egrep options configurable.
  + Ignore auto-tools files.
* Bump up standards-version to 3.7.2 (no changes needed).
* Let dh_strip do the stripping (not the make install target).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- mode: makefile; coding: utf-8 -*-
 
2
# Copyright © 2005-2006 Jonas Smedegaard <dr@jones.dk>
 
3
# Description: Auto-update debian/control from debian/control.in
 
4
#  When the environment variable DEB_BUILD_OPTIONS contains the magic
 
5
#  string "update" the clean target is extended to auto-update
 
6
#  debian/control from debian/control.in where build-depends can contain
 
7
#  the magic string @cdbs@ expanded to build-dependencies known to cdbs,
 
8
#  and more...
 
9
#
 
10
#  In other words, with this in use don't edit debian/control directly,
 
11
#  but instead edit debian/control.in and invoke the following:
 
12
#    DEB_BUILD_OPTIONS=update fakeroot debian/rules clean
 
13
#
 
14
# This program is free software; you can redistribute it and/or
 
15
# modify it under the terms of the GNU General Public License as
 
16
# published by the Free Software Foundation; either version 2, or (at
 
17
# your option) any later version.
 
18
#
 
19
# This program is distributed in the hope that it will be useful, but
 
20
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
21
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
22
# General Public License for more details.
 
23
#
 
24
# You should have received a copy of the GNU General Public License
 
25
# along with this program; if not, write to the Free Software
 
26
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
 
27
# 02111-1307 USA.
 
28
 
 
29
ifndef _cdbs_bootstrap
 
30
_cdbs_scripts_path ?= /usr/lib/cdbs
 
31
_cdbs_rules_path ?= /usr/share/cdbs/1/rules
 
32
_cdbs_class_path ?= /usr/share/cdbs/1/class
 
33
endif
 
34
 
 
35
ifndef _cdbs_rules_auto-update
 
36
_cdbs_rules_auto-update := 1
 
37
 
 
38
ifneq (,$(findstring update,$(DEB_BUILD_OPTIONS)))
 
39
DEB_AUTO_UPDATE_DEBIAN_CONTROL := yes
 
40
endif
 
41
 
 
42
# Avoid build-dependency on build-essential (to please ftpmasters)
 
43
CDBS_BUILD_DEPENDS :=
 
44
endif