On Mar 7, 8:11pm, da...@l8s.co.uk (David Laight) wrote: -- Subject: Re: CVS commit: src/external/public-domain/sqlite/lib
| Think I'd do | sqlite3.pc: ${SRCDIR}/sqlite3.h sqlite3.pc.in | @(V=$$( (echo '#include <sqlite3.h>'; echo "@@@ SQLITE_VERSION @@@") | \ | ${CC} -E -I${SRCDIR} - | tail -1 | tr -d '"') && \ | ${HOST_CC} -E -I${SRCDIR} - | grep '@@@' | tr -d '" @') && \ | ${TOOL_SED} -e "s/@VERSION@/$$V/" < ${.CURDIR}/sqlite3.pc.in \ | > ${.TARGET}) | | That would be safer. | Although you might want to remove the target file on failure. | Or maybe change the last line to: | > ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET} Try it... I don't mind. christos