Skip to main content

New ask Hacker News story: Ask HN: Am I a bad person for not using Make?

Ask HN: Am I a bad person for not using Make?
13 by travisgriggs | 15 comments on Hacker News.
I maintain a small handful of embedded C projects. Originally, I copied a Makefile from somewhere and did the standard thing with it. For basic dependency tracking, it's pretty straightforward of course. But every time I needed to do something "different" I had to go chase down how to do that (autogenerating a versions.c file for example). I don't remember at what point I snapped, but on one of these sojourns, I thought to myself: "The basic problem I'm solving here is driving gcc compile/link phases. I know how that works well. I want to do as little as possible. I know Python really pretty well, and I can generally get it to do anything I want. Why not just write a python script to do this? I'm tired of trying to figure out how to make do one more thing with .phony or whatever. I've got enough languages/systems/frameworks in my head already." So that's what I did. Took an hour or two to write it. It's ~200 lines long. It does fast threaded dependent builds. In addition to compiling, it does various other side related tasks. Peers have taken it and tweaked it multiple times to do interesting things. I just got tired of those Makefiles that evolve and over time, there's only one guy that understands it anymore. It's served us well for years. Am I the only developer to ever take this road less traveled?

Comments

Popular posts from this blog

Malegaon blast case: 19th witness turns hostile

The nineteenth witness turned hostile in the 2008 Malegaon blast case after he denied the contents of the statement. The witness,a former army personnel, who in the statement attributed to him in the chargesheet had claimed to have met several accused, did not identify any of them except Lt Col Prasad Purohit, who he said was his former neighbour. The witness claimed he was pressured by the probe agency to give a statement. from Mumbai News: Latest Mumbai News Headlines & Coronavirus News Updates from Mumbai - Times of India https://ift.tt/qJa36XQ

NMMC demolishes garden encroachment

Chauhan reiterated that action should also be taken for the illegal tree cutting here. from Mumbai News: Latest Mumbai News Headlines, Coronavirus News, BMC Elections 2022 Updates from Mumbai - Times of India https://ift.tt/vPoEdq0

Rao's lawyer can meet him in hospital: HC

The Bombay high court on Thursday allowed P V Varavara Rao's lawyer Sathyanarayan to meet him in Nanavati hospital to get his signature on an application seeking permission from the HC to modify his bail conditions. from Mumbai News: Latest Mumbai News Headlines & Coronavirus News Updates from Mumbai - Times of India https://ift.tt/2Msvmlg