On 11/20/2013 06:45 AM, jerome hamm wrote:
Hi, I am trying to pack some software using udev rules, which therefore needs to copy some files to /lib/udev/rules.d. When I try and run make distcheck, at the step where it must install the files in /lib/udev/rules.d it hopelessly fails because of permission issues. My rules (leeched from the upower project) are the following: <Makefile.am> udevrules_DATA = \ 95-evvgc.rules <configure.ac> # UDEV for device permission acces setting AC_ARG_WITH([udevrulesdir], AS_HELP_STRING([--with-udevrulesdir=DIR], [Directory for udev rules]), [], [with_udevrulesdir=$($PKG_CONFIG --variable=udevdir udev)"/rules.d"]) AC_SUBST([udevrulesdir], [$with_udevrulesdir]) Someone in the #autotools channel told that it should try to copy the files in a subfolder of the test folder (not the system root). What I also don't understand is why it doesn't work when I try fakeroot make distcheck ... What am I doing wrong?
This sounds more like a question for the automake folks, but have you read this section in the Automake manual:
http://www.gnu.org/software/automake/manual/automake.html#Hard_002dCoded-Install-Paths Cheers, Peter _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf