Re: Target path variables in debian/rules
> Why not reverse the two commands:
> override_dh_installman:
> /somepath/create-a-man-page > debian/packagename.1
> dh_installman --
> .... Let dh_installman install the generated manpage.
To my mind this violates modularity, in that *building* the man page
is happening during what is supposed to be just *installing* it.
I'd write either:
override_dh_auto_build:
dh_auto_build
/somepath/create-a-man-page > debian/packagename.1
Or maybe just let "make" do its job and allow parallelism and be clear
about dependencies with
override_dh_installman: debian/packagename.1
dh_installman
debian/packagename.1:
/somepath/create-a-man-page > $@
assuming the man page creation does not require some built executable.
Cheers,
--Barak.
--
Barak A. Pearlmutter
Hamilton Institute & Dept Comp Sci, NUI Maynooth, Co. Kildare, Ireland
http://www.bcl.hamilton.ie/~barak/
Reply to: