1
############################ -*- Mode: Makefile -*- ###########################
3
## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com )
4
## Created On : Sat Nov 15 02:56:30 2003
5
## Created On Node : glaurung.green-gryphon.com
6
## Last Modified By : Manoj Srivastava
7
## Last Modified On : Tue Nov 18 01:06:00 2003
8
## Last Machine Used: glaurung.green-gryphon.com
10
## Status : Unknown, Use with caution!
14
## arch-tag: 75fcc720-7389-4eaa-a7ac-c556d3eac331
16
###############################################################################
18
# The maintainer information.
19
maintainer := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Maintainer: | \
20
sed 's/^Maintainer: *//')
21
email := srivasta@debian.org
23
# Priority of this version (or urgency, as dchanges would call it)
24
urgency := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Urgency: | \
25
sed 's/^Urgency: *//')
27
# Common useful variables
28
DEB_SOURCE_PACKAGE := $(strip $(shell egrep '^Source: ' debian/control | \
30
DEB_VERSION := $(strip $(shell LC_ALL=C dpkg-parsechangelog | \
31
egrep '^Version:' | cut -f 2 -d ' '))
32
DEB_ISNATIVE := $(strip $(shell LC_ALL=C dpkg-parsechangelog | \
33
perl -ne 'print if (m/^Version:/g && ! m/^Version:.*\-/);'))
35
DEB_PACKAGES := $(shell perl -e ' \
38
$$p=$$1 if m/^Package:\s*(\S+)/; \
39
die "duplicate package $$p" if $$seen{$$p}; \
40
$$seen{$$p}++; print "$$p " if $$p; \
43
DEB_INDEP_PACKAGES := $(shell perl -e ' \
46
$$p=$$1 if m/^Package:\s*(\S+)/; \
47
die "duplicate package $$p" if $$seen{$$p}; \
49
$$a=$$1 if m/^Architecture:\s*(\S+)/m; \
50
next unless ($$a eq "all"); \
51
print "$$p " if $$p; \
54
DEB_ARCH_PACKAGES := $(shell perl -e ' \
57
$$p=$$1 if m/^Package:\s*(\S+)/; \
58
die "duplicate package $$p" if $$seen{$$p}; \
60
$$a=$$1 if m/^Architecture:\s*(\S+)/m; \
61
next unless ($$a eq "$(DEB_HOST_ARCH)" || $$a eq "any"); \
62
print "$$p " if $$p; \
65
# This package is what we get after removing the psuedo dirs we use in rules
66
package = $(notdir $@)