Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/awk/Makefile
Show All 19 Lines | |||||
CLEANFILES= maketab proctab.c ytab.h | CLEANFILES= maketab proctab.c ytab.h | ||||
# XXX: awkgram.c isn't really needed here but it is added to keep | # XXX: awkgram.c isn't really needed here but it is added to keep | ||||
# awkgram.h: .NOMETA respected. | # awkgram.h: .NOMETA respected. | ||||
ytab.h: awkgram.c awkgram.h .NOMETA | ytab.h: awkgram.c awkgram.h .NOMETA | ||||
ln -sf ${.ALLSRC:M*.h} ${.TARGET} | ln -sf ${.ALLSRC:M*.h} ${.TARGET} | ||||
proctab.c: maketab | proctab.c: maketab | ||||
${BTOOLSPATH:U.}/maketab awkgram.h > proctab.c | ./maketab awkgram.h > proctab.c | ||||
DEPENDOBJS+= maketab | DEPENDOBJS+= maketab | ||||
build-tools: maketab | maketab: maketab.c ytab.h | ||||
maketab: ytab.h maketab.c ${BUILD_TOOLS_META} | ${BUILD_TOOLS_CC} -I. ${.IMPSRC} -o ${.TARGET} | ||||
# awk needs some work before we can connect these tests to the build | # awk needs some work before we can connect these tests to the build | ||||
#HAS_TESTS= | #HAS_TESTS= | ||||
#SUBDIR.${MK_TESTS}+= tests | #SUBDIR.${MK_TESTS}+= tests | ||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> |