1 # $Id: Makefile,v 1.15 1996/04/29 21:11:24 jtc Exp $ 2 3 4 RPCSRCS= bootparam_prot.x klm_prot.x mount.x nfs_prot.x\ 5 nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x\ 6 sm_inter.x spray.x yp.x yppasswd.x 7 SRCS= ${RPCSRCS:R:S/$/.c/g} 8 HDRS= ${RPCSRCS:R:S/$/.h/g} 9 CLEANFILES+= ${SRCS} ${HDRS} 10 11 LIB= rpcsvc 12 NOMAN= 13 NOPIC= 14 15 all: ${HDRS} 16 beforedepend: ${HDRS} 17 18 includes: ${HDRS} 19 install -d -o ${BINOWN} -g ${BINGRP} -m 755 \ 20 ${DESTDIR}/usr/include/rpcsvc 21 @for i in $(HDRS); do \ 22 cmp -s $$i ${DESTDIR}/usr/include/rpcsvc/$$i || \ 23 { j="install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \ 24 ${DESTDIR}/usr/include/rpcsvc"; \ 25 echo $$j; $$j; } \ 26 done 27 @cd ${.CURDIR}; for i in $(RPCSRCS); do \ 28 cmp -s $(.CURDIR)/$$i ${DESTDIR}/usr/include/rpcsvc/$$i || \ 29 { j="install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \ 30 ${DESTDIR}/usr/include/rpcsvc"; \ 31 echo $$j; $$j; } \ 32 done 33 34 # new suffixes have to go afterwards, because bsd.lib.mk clears them 35 .include <bsd.lib.mk> 36 .SUFFIXES: .x .c .h 37 38 .x.c: 39 rpcgen -c ${.IMPSRC} -o ${.TARGET} 40 41 .x.h: 42 rpcgen -h ${.IMPSRC} -o ${.TARGET} 43