Home | History | Annotate | Line # | Download | only in librpcsvc
Makefile revision 1.11
      1 #	$Id: Makefile,v 1.11 1995/01/12 19:27:15 jtc Exp $
      2 
      3 RPCDIR=		${.CURDIR}/src
      4 .PATH:		${RPCDIR}
      5 
      6 RPCSRCS=	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 ${BINOWN} -g ${BINGRP} -m 755 \
     22 		${DESTDIR}/usr/include/rpcsvc
     23 	@for i in $(HDRS); do \
     24 	    cmp -s $$i ${DESTDIR}/usr/include/rpcsvc/$$i > /dev/null 2>&1 || \
     25 		install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
     26 		${DESTDIR}/usr/include/rpcsvc; \
     27 	done
     28 	@for i in $(RPCSRCS); do \
     29 	    cmp -s ${RPCDIR}/$$i ${DESTDIR}/usr/include/rpcsvc/$$i > /dev/null 2>&1 || \
     30 		install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${RPCDIR}/$$i \
     31 		${DESTDIR}/usr/include/rpcsvc; \
     32 	done
     33 
     34 # new suffixes have to go afterwards, because bsd.lib.mk clears them
     35 .include <bsd.lib.mk>
     36 .SUFFIXES: .x .c .h
     37 
     38 .x.c:
     39 	@echo generating $@...
     40 	@rpcgen -c ${.IMPSRC} -o ${.TARGET}
     41 
     42 .x.h:
     43 	@echo generating $@...
     44 	@rpcgen -h ${.IMPSRC} -o ${.TARGET}
     45