Fix $SRCS; use $DPSRCS; add explicit dependency on generated header file

This commit is contained in:
pk 2002-03-09 01:35:46 +00:00
parent c171455b6f
commit 951bda42bf
1 changed files with 8 additions and 4 deletions

View File

@ -1,11 +1,12 @@
# $NetBSD: Makefile,v 1.5 2002/02/13 09:02:12 tron Exp $ # $NetBSD: Makefile,v 1.6 2002/03/09 01:35:46 pk Exp $
PROG= xdrtest PROG= xdrtest
RPCSRCS= testbits.x RPCSRCS= testbits.x
SRCS= ${RPCSRCS:.x=.c} ${RPCSRCS:.x=.h} xdrtest.c SRCS= ${RPCSRCS:.x=.c} xdrtest.c
NOMAN= # defined DPSRCS= ${RPCSRCS:.x=.h}
CLEANFILES+= ${RPCSRCS:.x=.c}
CPPFLAGS+= -I. CPPFLAGS+= -I.
CLEANFILES+= testbits.c testbits.h NOMAN= # defined
regress: ${PROG} regress: ${PROG}
./${PROG} ./${PROG}
@ -18,6 +19,9 @@ _RPCGEN:= ${RPCGEN:M*rpcgen}
_RPCGEN!= type ${RPCGEN} | awk '{print $$NF}' _RPCGEN!= type ${RPCGEN} | awk '{print $$NF}'
.endif .endif
# Explicit dependency on generated header file
testbits.o xdrtest.o: testbits.h
.SUFFIXES: .x .SUFFIXES: .x
.x.c: ${_RPCGEN} .x.c: ${_RPCGEN}