Use .ALLSRC instead of RPCSRC
This is a trivial simplification in the Makefile, meant to serve as a good example for what to do with rules like this. MFC after: 1 week Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
398e13d120
commit
f826cc0107
@ -17,10 +17,10 @@ RPCSRC= ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x
|
||||
RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C
|
||||
|
||||
nlm_prot_svc.c: ${RPCSRC}
|
||||
${RPCGEN} -m -o ${.TARGET} ${RPCSRC}
|
||||
${RPCGEN} -m -o ${.TARGET} ${.ALLSRC}
|
||||
|
||||
nlm_prot.h: ${RPCSRC}
|
||||
${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
|
||||
${RPCGEN} -h -o ${.TARGET} ${.ALLSRC}
|
||||
|
||||
test: ${.CURDIR}/test.c
|
||||
cc -o test ${.CURDIR}/test.c -lrpcsvc
|
||||
|
Loading…
Reference in New Issue
Block a user