help-bash
[Top][All Lists]
Advanced

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

Re: Makefile for my loadable builtin


From: Chet Ramey
Subject: Re: Makefile for my loadable builtin
Date: Fri, 29 Apr 2022 14:53:42 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

On 4/27/22 10:03 AM, Robert E. Griffith wrote:
The goal for that file is to give you a template you can copy and just
change a couple of items (e.g., all occurrences of "example") to have a
Makefile you can use for your own builtin.
Well ok, but that does not seem like a great goal given that examples/loadables/Makefile.inc is a generated file that varies depending of target system capabilities.

It's just a different goal than the one you have.

Maybe the best thing to do is to have two, as you suggest:
1. remove the targets at the end of examples/loadables/Makefile.inc
2. add a new file examples/loadables/Makefile.sample which has "include
    examples/loadables.Makefile.inc" and then has the targets that were
    removed from Makefile.inc as an example.

with the filename changed to reflect the destination directory after
`make install'.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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