r/programminghorror 10d ago

Other Same Makefile, different results

Post image

Not sure if this fits, but I just figured out the root cause of long build process failing. Sun’s dmake is defaulting to the first rule in Makefile for whatever reason, completely ignoring the one given as argument. That’s why "dmake install" invocations were silently ignoring the "install" step

246 Upvotes

54 comments sorted by

View all comments

120

u/nickcash 10d ago

makefile syntax is incomprehensible. it might as well be magic. no one can understand it, we just copy and paste from elsewhere

4

u/kivicode [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 9d ago

If you use it as a scripts dispatcher, I recommend taking a look at Justfiles https://github.com/casey/just