Elektrine lite

← Feed

@baines@lemmy.cafe

2026-11-10 15:35 UTC

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?

Replies (2)

  • @marcos@lemmy.world 2026-11-10 16:12

    Bash. Bash is why.

    Open ##5515115

  • @merc@sh.itjust.works 2026-11-10 20:34

    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.

    Open ##5516121