[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: custom install options: No more binPROGRAMS_INSTALL?
From: |
Alessandro Vesely |
Subject: |
Re: custom install options: No more binPROGRAMS_INSTALL? |
Date: |
Tue, 22 Jul 2014 19:10:57 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.6.0 |
Hi again,
answering to myself... I searched ChangeLog and found this:
2008-09-20 Ralf Wildenhues <address@hidden>
Remove unneeded per-rule *INSTALL variables.
* NEWS: Update.
* lib/am/data.am (%DIR%%PRIMARY%_INSTALL): Remove.
(install-%DIR%%PRIMARY%): Adjust.
* lib/am/libs.am (%DIR%LIBRARIES_INSTALL): Remove.
(install-%DIR%LIBRARIES): Adjust.
* lib/am/ltlibs.am (%DIR%LTLIBRARIES_INSTALL): Remove.
(install-%DIR%LTLIBRARIES): Adjust.
* lib/am/progs.am (%DIR%PROGRAMS_INSTALL): Remove.
(install-%DIR%PROGRAMS): Adjust.
[...]
It is explained in the NEWS:
Further, most undocumented per-rule install command variables such as
binSCRIPT_INSTALL have been removed because they are not needed any
more. Packages which use them should be using the appropriate one of
INSTALL_{DATA,PROGRAM,SCRIPT} or their install_sh_{DATA,PROGRAM,SCRIPT}
counterpart, depending on the type of files and the need for automatic
target directory creation.
Indeed, setting "INSTALL_PROGRAM += @MY_AC_OPTIONS@" seems to do the trick.
But I have to split files according to install options :-(
Ale
On Sat 19/Jul/2014 20:47:53 +0200 I wrote:
> Hi,
> searching the web I found suggestions to use install-exec-hook and
> from there issue chown/chmod as needed. However, some years ago I had
> found instructions for setting those in Makefile.am like so:
>
> helloexecdir = @MY_AC_STUFF@
> helloexec_PROGRAMS = whatever
> helloexecPROGRAMS_INSTALL = $(INSTALL_PROGRAM)@MY_OTHER_AC_STUFF@
>
> First line still works, third one does not. MY_OTHER_AC_STUFF
> contains the required -o and -g options to install; the variable is
> defined but not used.
>
> Is that possibility gone for good? Are hooks the only way?
>
> TIA
> Ale
>
> P.S. I'm using automake 1.11.6 (Debian wheezy)
>