Make sure DESTDIR is set before using it in a dependency.

This commit is contained in:
tv 2002-01-31 15:16:21 +00:00
parent b27c26ce1c
commit 2b7bf32264
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2000/07/25 06:29:46 cgd Exp $
# $NetBSD: Makefile,v 1.19 2002/01/31 15:16:21 tv Exp $
PROG= rpc.bootparamd
SRCS= bootparamd.c bootparam_prot_svc.c
@ -9,6 +9,8 @@ CPPFLAGS+=-DYP
DPADD= ${LIBRPCSVC} ${LIBUTIL}
LDADD= -lrpcsvc -lutil
.include <bsd.prog.mk>
bootparam_prot.x: ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.x
rm -f ${.TARGET}
ln -s ${.ALLSRC} ${.TARGET}
@ -21,5 +23,3 @@ bootparam_prot_svc.c: bootparam_prot.x bootparam_prot.h
${RPCGEN} -C -L -m -o ${.TARGET} bootparam_prot.x
CLEANFILES += bootparam_prot_svc.c bootparam_prot.x bootparam_prot.h
.include <bsd.prog.mk>