1 2 3 4
Improved dirstamp: dirstamp.lst: [ ! -e $@ -o -n "$(find dir/ -newer $@ -print -quit)" ] && touch $@ || :;