Le 01/02/2020 à 07:44, Gavin Howard via lfs-dev a écrit : > This may be self-serving as I am the author of the software in > question, but I think that the Makefile generated by the configure.sh > script of the bc package to be a good example. To get it, the user can > run the first command in the bc section of Linux from Scratch. > > I think it's a good example because it's supposed to be a Makefile > that can work with any make that follows the POSIX standard. It has no > frills. It has no conditions anywhere, just straight targets. It also > has an example of an implicit target. > > Gavin Howard > > On Fri, Jan 31, 2020 at 10:29 PM Akira Urushibata via lfs-dev > <[email protected]> wrote: >> >> The greatest surprise I got from my recent survey is that many >> programmers do not have experience with "make." Come to think of >> it, this may well be the case considering the great popularity of >> scripting languages. >> >> This made me think: which package of the 70 or so which comprise >> LFS has a makefile which would serve as good reference for someone >> starting to study "make" and makefiles? Perhaps gzip?
I'd suggest also the Makefile for bzip2, which is the simplest I know in a package building environment. In any case, forget any Makefile generated by autotools! Pierre -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
