Hi Reuben, > On Jan 11, 2014, at 9:37 PM, Reuben Thomas <r...@sc3d.org> wrote: > >> On 11 January 2014 03:49, Gary V. Vaughan <g...@gnu.org> wrote: >> Hi Reuben, >> >> On Jan 11, 2014, at 3:12 PM, Reuben Thomas <r...@sc3d.org> 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; } (CAVEAT EMPTOR: from memory; untested, you'll probably need to massage $$f a bit before handing it to mv like that :) Cheers, -- Gary V. Vaughan (gary AT gnu DOT org)