1 # $Id: Makefile,v 1.13 1996/04/25 01:22:08 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 install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \ 24 ${DESTDIR}/usr/include/rpcsvc; \ 25 done 26 @for i in $(RPCSRCS); do \ 27 cmp -s $(.CURDIR)/$$i ${DESTDIR}/usr/include/rpcsvc/$$i || \ 28 install -c -o ${BINOWN} -g ${BINGRP} -m 444 $(.CURDIR)/$$i \ 29 ${DESTDIR}/usr/include/rpcsvc; \ 30 done 31 32 # new suffixes have to go afterwards, because bsd.lib.mk clears them 33 .include <bsd.lib.mk> 34 .SUFFIXES: .x .c .h 35 36 .x.c: 37 @echo generating $@... 38 @rpcgen -c ${.IMPSRC} -o ${.TARGET} 39 40 .x.h: 41 @echo generating $@... 42 @rpcgen -h ${.IMPSRC} -o ${.TARGET} 43