At 18:06 -0600 14 Dec 2012, David Champion <d...@bikeshed.us> wrote:
+version.h: FORCE + echo '#define MUTT_VERSION "'`sh "$(srcdir)/version.sh"`'"' > $@.tmp + (cmp -s $@ $@.tmp) && rm -f $@.tmp || mv $@.tmp $@ +FORCE: +.PHONY: version.h ?
I did it that way to try to be more portable. The docs for gnu make state:
Using `.PHONY' is more explicit and more efficient. However, other versions of `make' do not support `.PHONY'; thus `FORCE' appears in many makefiles.