diff --git a/usr.bin/vndcompress/Makefile b/usr.bin/vndcompress/Makefile index ca9e34eb47ac..f085cc1566f6 100644 --- a/usr.bin/vndcompress/Makefile +++ b/usr.bin/vndcompress/Makefile @@ -145,13 +145,17 @@ check: .PHONY ${CHECKS} .SUFFIXES: .cl2 .cl2x .in .out .outx .in.cl2: vndcompress - ./vndcompress ${.IMPSRC} ${.TARGET} ${BLOCKSIZE.${.PREFIX}} + ./vndcompress ${.IMPSRC} ${.TARGET}.tmp ${BLOCKSIZE.${.PREFIX}} \ + && mv -f ${.TARGET}.tmp ${.TARGET} .in.cl2x: - vndcompress ${.IMPSRC} ${.TARGET} ${BLOCKSIZE.${.PREFIX}} + vndcompress ${.IMPSRC} ${.TARGET}.tmp ${BLOCKSIZE.${.PREFIX}} \ + && mv -f ${.TARGET}.tmp ${.TARGET} .cl2.out: vndcompress - ./vndcompress -d ${.IMPSRC} ${.TARGET} + ./vndcompress -d ${.IMPSRC} ${.TARGET}.tmp \ + && mv -f ${.TARGET}.tmp ${.TARGET} .cl2.outx: - vnduncompress ${.IMPSRC} ${.TARGET} + vnduncompress ${.IMPSRC} ${.TARGET}.tmp \ + && mv -f ${.TARGET}.tmp ${.TARGET}