Source: xlog
Severity: wishlist
Tags: patch
User: debian...@lists.debian.org
Usertags: build-arch-target

Hi,

Please see attached patch as an example of how to do this.

You may also want to use the oppertunity to enable hardning flags.
In some cases, this is as easy as adding:

"""
DPKG_EXPORT_BUILDFLAGS=1

include /usr/share/dpkg/buildflags.mk
"""

to debian/rules and adding a Build-Depends on dpkg-dev (>= 1.16.1~)

~Niels
diff -Nru xlog-2.0.5/debian/changelog xlog-2.0.5/debian/changelog
--- xlog-2.0.5/debian/changelog	2011-05-01 16:48:37.000000000 +0200
+++ xlog-2.0.5/debian/changelog	2011-11-10 15:23:36.000000000 +0100
@@ -1,3 +1,10 @@
+xlog (2.0.5-2.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Added build-arch and build-indep targets in debian/rules.
+
+ -- Niels Thykier <ni...@thykier.net>  Thu, 10 Nov 2011 15:20:11 +0100
+
 xlog (2.0.5-2) unstable; urgency=low
 
   * Update debian/control
diff -Nru xlog-2.0.5/debian/rules xlog-2.0.5/debian/rules
--- xlog-2.0.5/debian/rules	2011-02-24 13:02:33.000000000 +0100
+++ xlog-2.0.5/debian/rules	2011-11-10 15:23:35.000000000 +0100
@@ -35,7 +35,9 @@
 	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man
 
 
-build: build-stamp
+build: build-arch build-indep
+build-arch: build-stamp
+build-indep: build-stamp
 
 build-stamp:  config.status
 	dh_testdir

Reply via email to