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