[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Automake - distcheck fails on install-exec-hook
From: |
Asaf Dalet |
Subject: |
Automake - distcheck fails on install-exec-hook |
Date: |
Thu, 29 Jan 2015 09:30:21 +0200 |
Hi all,
I have this Makefile.am:
AUTOMAKE_OPTIONS = subdir-objects
sbin_PROGRAMS = foo
foo_SOURCES = foo.c
install-exec-hook:
chmod +s $(sbindir)/foo
everything works well except for the target *distcheck* which gives this
error:
> make distcheck
...
...
...
Making install in sub-module
make[2]: Entering directory '/home/users/a/myproj/_build/sub-module'
make[3]: Entering directory '/home/users/a/myproj/_build/sub-module'
../../install-sh -c -d
'/var/folders/pp/jbr_vq091s7gd8x9scrc7drw0000gn/T//am-dc-71151//home/users/a/myproj/_inst/sbin'
/bin/sh ../libtool --mode=install /usr/bin/install -c foo
'/var/folders/pp/jbr_vq091s7gd8x9scrc7drw0000gn/T//am-dc-71151//home/users/a/myproj/_inst/sbin'
libtool: install: /usr/bin/install -c foo
/var/folders/pp/jbr_vq091s7gd8x9scrc7drw0000gn/T//am-dc-71151//home/users/a/myproj/_inst/sbin/foo
make install-exec-hook
make[4]: Entering directory '/home/users/a/myproj/_build/sub-module'
chmod +s /home/users/a/myproj/_inst/sbin/foo
chmod: /home/users/a/myproj/_inst/sbin/foo: No such file or directory
Makefile:645: recipe for target 'install-exec-hook' failed
make[4]: *** [install-exec-hook] Error 1
it looks like the *foo* binary is copied to some temp directory
(/var/folders/pp/jbr_vq091s7gd8x9scrc7drw0000gn/T//am-dc-71151//home/users/a/myproj/_inst/sbin)
and not to where it is looked at in the install-exec-hook target
(/home/users/a/myproj/_inst/sbin)
What am I missing??
Thanks,
Asaf
- Automake - distcheck fails on install-exec-hook,
Asaf Dalet <=