You want to use pkg-config to get the right directory to install to, and
make it a new install class

dnl configure.ac
PKG_CHECK_VARIABLE(udevrulesdir, ...) (or whatever the name is of the
macro, I forgot)

# Makefile.am
udevrules_DATA = foo.rules.


Diego Elio Pettenò — Flameeyes
flamee...@flameeyes.eu — http://blog.flameeyes.eu/


On 14 March 2014 18:33, Paul Richards <prichards...@hotmail.com> wrote:

> Hello, I have a package I am working on and was wondering how to get my
> udev rules file into the directory /lib/udev/rules.d, if there is a
> variable
> substitution for the /lib directory. I found the macro $(libdir), but on
>  debian this expands to /usr/local/lib which does not work for udev on
> debian.
>
>
> Any help is greatly appreciated!
>
> Thanks,
>
> Paul Richards

Reply via email to