Re: [dev] suckless distro

From: Sylvain BERTRAND <sylware_AT_legeek.net>
Date: Thu, 26 Jun 2014 05:30:04 +0200

On Wed, Jun 25, 2014 at 08:12:10PM -0600, Anthony J. Bentley wrote:
> Sylvain BERTRAND writes:
>> Using a makefile is overkill. Should be a sh script.
>>
>> Makefiles should be used only when there are too many source
>> files to recompile for a build increment.
>
> For an opinion that matters, try Kernighan & Pike (The Unix Programming
> Environment, pg. 241):
>
> It's a nuisance to have to type two commands to compile a new version of
> [our example]. Although it's certainly easy to make a shell file that does
> the job, there's a better way, one that will generalize nicely later on
> when there is more than one source file in the program. ...
>
> make is most useful when the program being created is large enough to be
> spread over several source files, but it's handy even for something as
> small as [our example].
>
> In other words, one advantage that make provides is a simple interface for
> building any program, whether small or large. Said interface should not
> come at the cost of complexity, but good makefiles are simple anyway (the
> one in their example is two lines).

Well, I disagree on that point with Kernighan & Pike (The Unix
Programming Environment, pg. 241).

And come on... :)

regards,

-- 
Sylvain
Received on Thu Jun 26 2014 - 05:30:04 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 26 2014 - 05:36:06 CEST