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
252
Upvotes
View all comments
Show parent comment
7
u/dydhaw Jul 27 '26
The syntax is perfectly fine. Phony targets simply tell make to run the rule regardless of if the target exists. Besides, .PHONY is a GNU extension. It is not POSIX