Process FILES section only at "install" time. TOOL_AWK is not yet available

for earlier make targets.

Ok: Alan Barrett <apb@netbsd.org>
This commit is contained in:
hannken 2008-10-22 17:54:23 +00:00
parent a96df19b68
commit 98f8b098aa

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2008/10/19 22:05:20 apb Exp $
# $NetBSD: Makefile,v 1.6 2008/10/22 17:54:23 hannken Exp $
# $FreeBSD: src/gnu/usr.bin/groff/src/utils/indxbib/Makefile,v 1.7 2003/05/01 13:22:21 ru Exp $
@ -12,6 +12,7 @@ CLEANFILES= ${MAN}
.include <bsd.own.mk>
.if make(install)
COMMON_WORDS_FILE!= ${TOOL_AWK} -F\" '/COMMON_WORDS_FILE/ { print $$2 }' \
${.CURDIR}/../../include/defs.h
@ -20,5 +21,6 @@ FILES=eign
FILESNAME=${COMMON_WORDS_FILE:T}
FILESDIR=${COMMON_WORDS_FILE:H}
.endif
.endif
.include <bsd.prog.mk>