Re: target specific variables in makefiles

2003-09-09 Thread Andrew Stribblehill
Quoting Colin Watson <[EMAIL PROTECTED]> (2003-09-09 00:50:24 BST): > On Mon, Sep 08, 2003 at 07:22:02PM -0400, Neil Roeth wrote: > > I recently read about target-specific variables in make, so I thought I > > could > > do this: > > > > pkg1-stamp: pkg1 > > pkg2-stamp: pkg2 > > > > %-stamp: $(@:

Re: target specific variables in makefiles

2003-09-09 Thread Andrew Stribblehill
Quoting Colin Watson <[EMAIL PROTECTED]> (2003-09-09 00:50:24 BST): > On Mon, Sep 08, 2003 at 07:22:02PM -0400, Neil Roeth wrote: > > I recently read about target-specific variables in make, so I thought I could > > do this: > > > > pkg1-stamp: pkg1 > > pkg2-stamp: pkg2 > > > > %-stamp: $(@:%-sta

Re: target specific variables in makefiles

2003-09-08 Thread Neil Roeth
On Sep 9, Colin Watson ([EMAIL PROTECTED]) wrote: > On Mon, Sep 08, 2003 at 07:22:02PM -0400, Neil Roeth wrote: > > I recently read about target-specific variables in make, so I thought I > > could > > do this: > > > > pkg1-stamp: pkg1 > > pkg2-stamp: pkg2 > > > > %-stamp: $(@:%-stamp=

Re: target specific variables in makefiles

2003-09-08 Thread Neil Roeth
On Sep 9, Colin Watson ([EMAIL PROTECTED]) wrote: > On Mon, Sep 08, 2003 at 07:22:02PM -0400, Neil Roeth wrote: > > I recently read about target-specific variables in make, so I thought I could > > do this: > > > > pkg1-stamp: pkg1 > > pkg2-stamp: pkg2 > > > > %-stamp: $(@:%-stamp=%) >

Re: target specific variables in makefiles

2003-09-08 Thread Colin Watson
On Mon, Sep 08, 2003 at 07:22:02PM -0400, Neil Roeth wrote: > I recently read about target-specific variables in make, so I thought I could > do this: > > pkg1-stamp: pkg1 > pkg2-stamp: pkg2 > > %-stamp: $(@:%-stamp=%) > touch $@ > > pkg1: DH_OPTIONS=-p$@ > ... > dh_install >

target specific variables in makefiles

2003-09-08 Thread Neil Roeth
I have a source package that creates multiple binary packages, each of which requires a different sequence of debhelper programs. To avoid having to specify the -p option for each command, I do this: pkg1-stamp: pkg1 pkg2-stamp: pkg2 %-stamp: $(MAKE) -f debian/rules DH_OPTIONS=-p$(@:%-st

Re: target specific variables in makefiles

2003-09-08 Thread Colin Watson
On Mon, Sep 08, 2003 at 07:22:02PM -0400, Neil Roeth wrote: > I recently read about target-specific variables in make, so I thought I could > do this: > > pkg1-stamp: pkg1 > pkg2-stamp: pkg2 > > %-stamp: $(@:%-stamp=%) > touch $@ > > pkg1: DH_OPTIONS=-p$@ > ... > dh_install >

target specific variables in makefiles

2003-09-08 Thread Neil Roeth
I have a source package that creates multiple binary packages, each of which requires a different sequence of debhelper programs. To avoid having to specify the -p option for each command, I do this: pkg1-stamp: pkg1 pkg2-stamp: pkg2 %-stamp: $(MAKE) -f debian/rules DH_OPTIONS=-p$(@:%-st