2
export CFLAGS += -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)
3
export LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed
3
# Sample debian/rules that uses debhelper.
4
# GNU copyright 1997 to 1999 by Joey Hess.
6
# Uncomment this to turn on verbose mode.
10
tmp := $(CURDIR)/debian/tmp
11
# These are used for cross-compiling and for saving the configure script
12
# from having to guess our platform (since we know it already)
13
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
14
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17
DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
18
DEB_BUILD_PROG:=debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
22
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
27
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
31
config.status: configure
33
# Add here commands to configure the package.
34
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-pkg-manager="/usr/bin/update-manager" --sysconfdir=/etc
39
build-stamp: config.status
42
# Add here commands to compile the package.
44
(cd po; intltool-update -p --verbose)
45
#/usr/bin/docbook-to-man debian/upgrade-notifier.sgml > upgrade-notifier.1
54
# Add here commands to clean up after the build process.
56
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
57
cp -f /usr/share/misc/config.sub config.sub
59
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
60
cp -f /usr/share/misc/config.guess config.guess
72
# Add here commands to install the package into debian/upgrade-notifier.
73
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
75
#install -p -m 755 debian/synaptic-wrapper $(tmp)/usr/bin
76
mkdir -p $(tmp)/etc/apt/apt.conf.d
77
install -p -m 644 debian/99update-notifier $(tmp)/etc/apt/apt.conf.d
78
install -p -m 644 debian/10periodic $(tmp)/etc/apt/apt.conf.d
79
install -p -m 644 debian/15update-stamp $(tmp)/etc/apt/apt.conf.d
80
install -p -m 644 debian/20archive $(tmp)/etc/apt/apt.conf.d
85
# Build architecture-independent files here.
86
binary-indep: build install
87
# We have nothing to do by default.
89
# Build architecture-dependent files here.
90
binary-arch: build install
93
dh_installchangelogs ChangeLog
97
dh_install --sourcedir=debian/tmp
101
# dh_installlogrotate
125
rm -rf debian/arch-build
126
mkdir -p debian/arch-build/$(PKG)-$(DEBVER)
127
tar -c --exclude=arch-build --no-recursion -f - `bzr inventory` | (cd debian/arch-build/$(PKG)-$(DEBVER);tar xf -)
128
debian/arch-build/$(PKG)-$(DEBVER)/autogen.sh
129
# HACK to fix the *$�/$&"�" automake generated po/Makefile.in
130
sed -i 's/@install_sh@/..\/install-sh/' debian/arch-build/$(PKG)-$(DEBVER)/po/Makefile.in.in
131
(cd debian/arch-build/$(PKG)-$(DEBVER) && $(DEB_BUILD_PROG))
134
binary: binary-indep binary-arch
135
.PHONY: build clean binary-indep binary-arch binary install