Home | History | Annotate | Line # | Download | only in librpcsvc
Makefile revision 1.9
      1  1.9     jtc #	$Id: Makefile,v 1.9 1994/05/22 04:20:02 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.9     jtc 	    cmp -s $$i ${DESTDIR}/usr/include/rpcsvc/$$i > /dev/null 2>&1 || \
     24  1.9     jtc 		install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
     25  1.9     jtc 		${DESTDIR}/usr/include/rpcsvc; \
     26  1.8     jtc 	done
     27  1.8     jtc 	@for i in $(RPCSRCS); do \
     28  1.9     jtc 	    cmp -s ${RPCDIR}/$$i ${DESTDIR}/usr/include/rpcsvc/$$i > /dev/null 2>&1 || \
     29  1.9     jtc 		install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${RPCDIR}/$$i \
     30  1.9     jtc 		${DESTDIR}/usr/include/rpcsvc; \
     31  1.8     jtc 	done
     32  1.8     jtc 
     33  1.8     jtc # new suffixes have to go afterwards, because bsd.lib.mk clears them
     34  1.8     jtc .include <bsd.lib.mk>
     35  1.8     jtc .SUFFIXES: .x .c .h
     36  1.8     jtc 
     37  1.8     jtc .x.c:
     38  1.8     jtc 	@echo generating $@...
     39  1.8     jtc 	@rpcgen -c ${.IMPSRC} -o ${.TARGET}
     40  1.8     jtc 
     41  1.8     jtc .x.h:
     42  1.8     jtc 	@echo generating $@...
     43  1.8     jtc 	@rpcgen -h ${.IMPSRC} -o ${.TARGET}
     44