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