I had a discussion with dsl@ on source-change...@. http://mail-index.netbsd.org/source-changes-d/2009/12/08/msg001261.html
His suggestion was: arith.h: arith.y <yacc commands> arith.o: arith.h [ -f ${@:.o=c} ] || { rm ${@:.o=.h}; exit 1; } <commands to compile arith.c> ie having no real dependency against arith.c I showd my idea to make commands to generate only one output. I got no response. I took that as no one has interest about this. GENCMD is just one way to achieve that. You can do it in $YOUR_OWN_WAY but the idea is that. Masao -- Masao Uebayashi / Tombi Inc. / Tel: +81-90-9141-4635