Ancestors

Written by 0xC0DEC0DE07E8 on 2023-12-24 at 00:20

How the hell have I never just made an executable configure script and tiny Makefile in my CMake repos to make autotools fans more comfortable?

=> More informations about this toot | More toots from c0dec0dec0de@hachyderm.io

Written by 0xC0DEC0DE07E8 on 2023-12-24 at 00:35

I have been trying to get people to not write wrapper scripts and I could have just made my own minuscule ones that would have been better than every single wrapper that I’ve seen over the past decade.

=> More informations about this toot | More toots from c0dec0dec0de@hachyderm.io

Written by 0xC0DEC0DE07E8 on 2025-01-15 at 02:30

Autotools-skeuomorphic Makefile is super easy. Corresponding configure script still in progress; doing that in Python.

Then it finally occurred to me that one of the stumbling blocks is that autotools configure is stateless - it blows away the old configuration every time - where CMake keeps its configuration state and lets you mutate it incrementally. Now I need to wonder if my skeuomorphic configure script should blow away the build/binary directory each run…

[#]CMake #autotools

=> More informations about this toot | More toots from c0dec0dec0de@hachyderm.io

Toot

Written by 0xC0DEC0DE07E8 on 2025-01-15 at 02:33

Probably provide a —clean option that blows away the build dir if I choose to stay stateful by default.

=> More informations about this toot | More toots from c0dec0dec0de@hachyderm.io

Descendants

Written by 0xC0DEC0DE07E8 on 2025-01-15 at 12:08

Or I could scale it way back and have it just run cmake -S . -B build or print a little explainer if you pass any arguments.

=> More informations about this toot | More toots from c0dec0dec0de@hachyderm.io

Written by 0xC0DEC0DE07E8 on 2025-01-15 at 12:40

So, if my goal is just to restore autotools happy-path of ./configure && make && make install I need maybe ten lines of shell including the explainer blurb. If my goal is to create the best and universally-loved and appreciated one true CMake wrapper - a thing that is both normal to want and possible to achieve - then I need Python with custom argparse.Actions and some sort of reality-distortion field to avoid bike-shedding and yak-shaving.

[#]CMake #autotools

=> More informations about this toot | More toots from c0dec0dec0de@hachyderm.io

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113830029952677056
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
260.622112 milliseconds
Gemini-to-HTML Time
1.057385 milliseconds

This content has been proxied by September (ba2dc).