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