bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EXEEXT for other languages


From: Reuben Thomas
Subject: Re: EXEEXT for other languages
Date: Sat, 11 Jan 2014 22:32:24 +0000

On 11 January 2014 22:31, Gary V. Vaughan <address@hidden> wrote:
Hi Reuben,

On Jan 11, 2014, at 9:37 PM, Reuben Thomas <address@hidden> wrote:

On 11 January 2014 03:49, Gary V. Vaughan <address@hidden> wrote:
Hi Reuben,

On Jan 11, 2014, at 3:12 PM, Reuben Thomas <address@hidden> wrote:

> I have a project that installs a C program and a Perl program. I want to allow the Perl program to be installed with the suffix .pl, on Windows, for example.
>
> In the past, I have misused EXEEXT for this, with projects that install programs in one non-C language only, but here that is not possible, since I install a C program.
>
> Is there any generally-used way around this? If not, should I just introduce a generic-sounding variable like PERL_EXEEXT and use that, and advertise its use?

I would write an install-exec-hook in your Makefile.am that performs any post-install renames according to whatever logic you deem appropriate :)

   http://www.gnu.org/software/automake/manual/automake.html#Extending

Sure, I was wondering more about the user interface than the implementation.

No UI required:

install-exec-hook:
        test -z "$(EXEEXT)" || { cd $(prefix)/bin; for f in $(bin_SCRIPTS); do mv -f $$f $$f.pl; done; }


My point being that you might want to change the suffix.

--
http://rrt.sc3d.org

reply via email to

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