On 11/28/06, Loïc Minier <lool+debian@via.ecp.fr> wrote:
If you use simple-patchsys, you can prepend before any "include" line: ifeq ($(DEB_HOST_ARCH),m68k) DEB_PATCHDIRS = debian/patches debian/patches/$(DEB_HOST_ARCH) endif to add debian/patches/m68k to the list of directories with patches to apply. Obviously, this can be adapted for many use cases, and different patch orders.
I like the simplicity of this approach. I settled on the following: alpha := 64 amd64 := 64 ia64 := 64 DEB_PATCHDIRS = debian/patches/$($(DEB_HOST_ARCH)) include /usr/share/cdbs/1/rules/simple-patchsys.mk Thanks for your help, Shaun