607
you are viewing a single comment's thread
view the rest of the comments
[-] baines@lemmy.cafe 14 points 4 days ago

oh god early career, coding on a 20 year old program

using makefiles to compile while on a remote host

lack of target resulted in trying to programatically delete the remote hosts root

thank good i did not have the permission

why is defaulting like this a thing instead of a syntax error?

[-] marcos@lemmy.world 5 points 4 days ago

Bash. Bash is why.

[-] merc@sh.itjust.works 3 points 4 days ago

99% of the time it's fine, because 99% of the time the person who wrote the Makefile undertands Makefiles and knows that the first thing you do is define a default target. A default target that's chosen reasonably is a very nice feature of make because there are no standard names for targets, and no easy way to find out the names of targets other than trying to read the Makefile, which can be a pain in the ass.

this post was submitted on 10 Nov 2026
607 points (98.9% liked)

Programmer Humor

34135 readers
1937 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS