Makefile revision 172962
185724Sobrien# $FreeBSD: head/usr.bin/awk/Makefile 172962 2007-10-25 12:43:22Z obrien $ 285724Sobrien 385724SobrienAWKSRC= ${.CURDIR}/../../contrib/one-true-awk 485724Sobrien.PATH: ${AWKSRC} 585724Sobrien 691707SobrienPROG= nawk 794266SruSRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h 885724Sobrien 9112339SobrienCFLAGS+= -DHAS_ISBLANK -I. -I${AWKSRC} 1085724Sobrien 1191760SobrienDPADD= ${LIBM} 1291760SobrienLDADD= -lm 1385724Sobrien 1494267SruLINKS= ${BINDIR}/nawk ${BINDIR}/awk 1594267SruMLINKS= nawk.1 awk.1 1685724Sobrien 1794267SruCLEANFILES= maketab proctab.c ytab.h 1885724Sobrien 1994267Sruytab.h: awkgram.h 2094339Sobrien ln -sf ${.ALLSRC} ${.TARGET} 2185724Sobrien 2285724Sobrienproctab.c: maketab 2385724Sobrien ./maketab > proctab.c 2485724Sobrien 2585724Sobrienbuild-tools: maketab 2685724Sobrienmaketab: ytab.h ${AWKSRC}/maketab.c 2785724Sobrien 2894339SobrienCLEANFILES+= nawk.1 2991707Sobriennawk.1: awk.1 30115898Skuriyama cat ${.ALLSRC} > ${.TARGET} 3191707Sobrien 32172962Sobrien.for f in b.c main.c run.c 33146322Sru${f}: ${AWKSRC}/${f} ${.CURDIR}/${f}.diff 34146322Sru patch -s -b .orig -o ${.TARGET} < ${.CURDIR}/${f}.diff ${AWKSRC}/${f} 35146322SruCLEANFILES+= ${f} 36146322Sru.endfor 37146322Sru 3885724Sobrien.include <bsd.prog.mk> 39