How do I hack makefiles?

mydriasis
2018-12-14T13:36:34Z

If you have built from source, then you know the relief when nothing interesting comes out of ./configure && make && make install. In fact, the less interesting the output of these commands, the better.

But occasionally, the source build process is so horrifying that you end up having to modify the configure script or makefile yourself.

So far I have only been able to do this when I was lucky enough to find some poor, destitute stranger who had pretty much the same problem as me ( most recent I can think of is GNUTLS, where I had to adjust the version requirements for nettle ) and that is a problem -- there must be some way to learn this myself.

Is this just something that comes with time and experience, or does anyone have a reliable guide or resource for modifying makefiles and configure scripts? I would appreciate advice / discussion: I am tired of "getting lucky" with these!

Comments URL: https://tildes.net/~comp/95y/how_do_i_hack_makefiles

Votes: 15

Comments: 17