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,
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
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.
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.
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
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
35
ifndef _cdbs_rules_auto-update
36
_cdbs_rules_auto-update := 1
38
ifneq (,$(findstring update,$(DEB_BUILD_OPTIONS)))
39
DEB_AUTO_UPDATE_DEBIAN_CONTROL := yes
42
# Avoid build-dependency on build-essential (to please ftpmasters)