r/programminghorror • u/Capable-Cap9745 • Jul 26 '26
Other Same Makefile, different results
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
251
Upvotes
View all comments
Show parent comment
4
u/SAI_Peregrinus Jul 27 '26
As far as I can tell POSIX does not specify the behavior when a target file is missing. Leaving behavior unspecified usually means it differed between implementations when POSIX was written, since POSIX is an attempt to standardize the common subset of behaviors shared by UNIX systems.
Sun probably decided to treat a missing target file the same as a missing target specifier, and since SunOS (1982) predates POSIX (1988) that decision got implicitly allowed in the POSIX specifications.