> make -d -C dir all >run1 > cd dir; make -d all >../run2 cd .. diff -udb run1 run2 | less But maybe you don't have GNU make, but some Apple (BSD-derived) make which doesn't have the "-d" switch ...