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
101
u/russellvt Jul 26 '26
That syntax doesn't appear right... normally you want "phony" declarations in there if you're not pointing directly at file dependencies.
122
u/nickcash Jul 26 '26
makefile syntax is incomprehensible. it might as well be magic. no one can understand it, we just copy and paste from elsewhere
1
u/Rockytriton Aug 01 '26
-s b means skip b?
1
u/Environmental-Ear391 Jul 27 '26
I have a similar issue,
GNUmakefile content is unchanged,
two versions of an SDK specific make tool, older version works fine with POSIX pathing, newer version can't complete any single target.
"make" and "gcc" commands both barf after being updated. older versions can actual produce object files for linking.
then again the version on make is like a 0.01 revision difference.
the gcc version is bumped from 6.4 up to 10.something...
I'll have to spend some time reworking the build process again anyway.
1
u/Salty_1984 Jul 27 '26
ugh silent failures in build tools are the worst, you spend forever thinking something ran fine when it just quietly skipped the whole point of the command. dmake has always felt a little unpredictable compared to gnu make. at least you caught it before something bigger broke downstream