Commit 50ca3cb88daa5cfa1d05adc7fa062df6659973c0

Jim Meyering 2003-04-18T08:54:34

* lib/am/yacc.am (?!GENERIC?%OBJ% aka .y.c): Don't redirect directly to $@. Instead, redirect to $@t and rename upon success. Also, move the commands that update $@ so they are last. Otherwise, this rule could leave the user with an up to date target (.c file) but with a missing or corrupted corresponding .h file.