Hi Ben, On Tue, 2011-07-26 at 17:10 +1000, Ben Finney wrote: > Howdy all, > > Lintian recommends (via tag ‘debian-rules-missing-recommended-target’): > > ===== > N: Note that the following form is recommended however: > N: > N: build: build-arch build-indep > N: build-arch: build-stamp > N: build-indep: build-stamp > N: build-stamp: > N: build here > ===== > > I am building arch-independent and arch-dependent packages from a rules > file. The actions don't need anything other than “dh $@”. (I don't want > to use the “%:” style, since I prefer the ‘.PHONY’ target to be > explicit). > > But where should “dh $@” be put? The above information from Lintian > recommends that all the build actions should be in ‘build-stamp’, but > ‘dh’ doesn't know about that target and barfs.
If you're sure that you want to use dh but .PHONY then just put into
your rules something like:
build-indep:
dh $@
build-arch:
dh $@
build: build-arch build-indep
No need for a stamp as dh is already producing stamps internally.
At second thought I'm not too sure what would happen if you'd put %: dh
$@ and also .PHONY into debian/rules. Considering the internal stamps of
dh that might also be an option.
Just out of curiosity: what are you stuffing into your .PHONY target
that you need to manually control?
--
Best regards,
Kilian
signature.asc
Description: This is a digitally signed message part

