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
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
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
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
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
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.Action
s 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 This content has been proxied by September (ba2dc).Proxy Information
text/gemini