[Top][All Lists]

[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

AUTOMAKE_OPTIONS = subdir-objects
sbin_PROGRAMS = foo
foo_SOURCES = foo.c
    chmod +s $(sbindir)/foo

everything works well except for the target *distcheck* which gives this

> 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
    /bin/sh ../libtool   --mode=install /usr/bin/install -c foo
libtool: install: /usr/bin/install -c 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
and not to where it is looked at in the install-exec-hook target

What am I missing??



reply via email to

[Prev in Thread] Current Thread [Next in Thread]