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