Rework generating of files so that every generation tool will only run once.
[dragonfly.git] / gnu / usr.bin / cc41 / cc_tools / genmodes / Makefile
blobe8ef0bec706cdeb07911ec1233cb9e1b1285defd
1 # $DragonFly: src/gnu/usr.bin/cc41/cc_tools/genmodes/Makefile,v 1.2 2007/08/25 15:29:29 corecode Exp $
3 .include "../Makefile.inc"
5 PROG= genmodes
6 SRCS= genmodes.c
7 SRCS+= ${ERRORS_SRCS}
9 all: ${TOOLGENDIR}/insn-modes.c ${TOOLGENDIR}/insn-modes.h ${TOOLGENDIR}/min-insn-modes.c
11 ${TOOLGENDIR}/insn-modes.c: ${PROG}.nx
12 ${.OBJDIR}/${PROG}.nx > ${.TARGET}.tmp
13 ${MIC} ${.TARGET}.tmp ${.TARGET}
15 ${TOOLGENDIR}/insn-modes.h: ${PROG}.nx
16 ${.OBJDIR}/${PROG}.nx -h > ${.TARGET}.tmp
17 ${MIC} ${.TARGET}.tmp ${.TARGET}
19 ${TOOLGENDIR}/min-insn-modes.c: ${PROG}.nx
20 ${.OBJDIR}/${PROG}.nx -m > ${.TARGET}.tmp
21 ${MIC} ${.TARGET}.tmp ${.TARGET}
23 .include <bsd.hostprog.mk>