[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Target path variables in debian/rules


On Fri, Jun 1, 2012 at 12:33 PM, Ole Wolf <ole@naturloven.dk> wrote:
However, I don't know how to specify the target path for the man pages,
which I've tentatively indicated by ${mandir} in the above snippet. I'm
not using autoconf, which seems to set some path variables.

This may only be a partial help for you (you will still need to specify the /usr/... etc stuff), but this is the method we use in the Debian Perl group to build the path:
PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)
Using this method, you can substitute $(PACKAGE) for the package name, which may make your rules file a little prettier...

Please see this page for this and other tricks: http://pkg-perl.alioth.debian.org/debhelper.html#note_on_paths



Reply to: