Re: [dev] lightweight build system

From: ochern <dexahex_AT_gmail.com>
Date: Sun, 23 Jul 2017 15:45:49 +0300

Absolutely not looking for radical. I prefer standard sh and make, not
invent new make variations or, worse, new formats and languages. Every
new make variant declares to retain all good and fix all bad from
classic make by inventing just another one declarative syntax. Usually
it looks weird. IMHO make is not bad or good. Treat it just as a tool
that "does one thing and does it well". What it does well is tracking
file dependencies. It was the primary goal. The syntax is simple
declarative and therefor beautiful. I would not touch it. gnu make
extensions that bring new features look mostly ugly. Usually different
extensions can be implemented in shell that wraps a classic makefile.
I call it 'mkmf'. It's simple and looks nice. Average user can open
mkmf and see a familiar code. I don't invent something new. mkmf is
not a new build system, but an approach how to effectively use
existing make. I think it's rather simple and effective

Thanks for the links.

Alex


On Sun, Jul 23, 2017 at 2:41 PM, Greg Reagle <greg.reagle_AT_umbc.edu> wrote:
> I agree that mk is very good and better than make, and also that it is
> not radically different from make. Same thing goes for rc, it is very
> good and better than Bourne shell (/bin/sh), but not radically
> different. If you are looking for a radically different approach to
> building, have you considered redo? [1][2]
>
> Yes, you can include shell script code inside a makefile, or makefile
> code inside a shell script (as you demonstrated).
>
>> I'd like to read about rc and 9base. Could you give some reference?
>
> See [3][4][5].
>
> Note that 9base includes both rc and mk. Note that you can direct mk to
> use Bourne shell or mk as you like(see man page for MKSHELL). Note also
> that mk has the facility to include dynamic information (see <| and `{
> in the man page).
>
> [1] https://github.com/apenwarr/redo
> [2]
> http://synflood.at/blog/index.php?/archives/789-Why-djb-redo-wont-be-the-Git-of-build-systems.html
> [3] http://doc.cat-v.org/plan_9/4th_edition/papers/rc
> [4] http://doc.cat-v.org/plan_9/4th_edition/papers/mk
> [5] http://tools.suckless.org/9base
>
Received on Sun Jul 23 2017 - 14:45:49 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 23 2017 - 14:49:13 CEST