[Top][All Lists]

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

Re: EXEEXT for other languages

From: Gary V. Vaughan
Subject: Re: EXEEXT for other languages
Date: Sun, 12 Jan 2014 11:31:38 +1300

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 :)


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

No UI required:

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

(CAVEAT EMPTOR: from memory; untested, you'll probably need to massage $$f a bit before handing it to mv like that :)

Gary V. Vaughan (gary AT gnu DOT org)

reply via email to

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