1994-05-22 08:20:02 +04:00
|
|
|
# $Id: Makefile,v 1.9 1994/05/22 04:20:02 jtc Exp $
|
1993-06-02 23:51:29 +04:00
|
|
|
|
1994-01-21 02:04:13 +03:00
|
|
|
RPCDIR= ${.CURDIR}/src
|
|
|
|
.PATH: ${RPCDIR}
|
1993-06-03 21:07:56 +04:00
|
|
|
|
1994-01-21 02:04:13 +03:00
|
|
|
RPCSRCS= amq.x bootparam_prot.x klm_prot.x mount.x nfs_prot.x\
|
|
|
|
nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x\
|
|
|
|
sm_inter.x spray.x yp.x yppasswd.x
|
|
|
|
SRCS= ${RPCSRCS:R:S/$/.c/g}
|
|
|
|
HDRS= ${RPCSRCS:R:S/$/.h/g}
|
|
|
|
CLEANFILES+= ${SRCS} ${HDRS}
|
|
|
|
|
|
|
|
LIB= rpcsvc
|
|
|
|
NOMAN=
|
|
|
|
NOPIC=
|
|
|
|
|
|
|
|
all: ${HDRS}
|
|
|
|
beforedepend: ${HDRS}
|
|
|
|
|
|
|
|
beforeinstall:
|
|
|
|
install -d -o bin -g bin -m 755 ${DESTDIR}/usr/include/rpcsvc
|
|
|
|
@for i in $(HDRS); do \
|
1994-05-22 08:20:02 +04:00
|
|
|
cmp -s $$i ${DESTDIR}/usr/include/rpcsvc/$$i > /dev/null 2>&1 || \
|
|
|
|
install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
|
|
|
|
${DESTDIR}/usr/include/rpcsvc; \
|
1994-01-21 02:04:13 +03:00
|
|
|
done
|
|
|
|
@for i in $(RPCSRCS); do \
|
1994-05-22 08:20:02 +04:00
|
|
|
cmp -s ${RPCDIR}/$$i ${DESTDIR}/usr/include/rpcsvc/$$i > /dev/null 2>&1 || \
|
|
|
|
install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${RPCDIR}/$$i \
|
|
|
|
${DESTDIR}/usr/include/rpcsvc; \
|
1994-01-21 02:04:13 +03:00
|
|
|
done
|
|
|
|
|
|
|
|
# new suffixes have to go afterwards, because bsd.lib.mk clears them
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.SUFFIXES: .x .c .h
|
|
|
|
|
|
|
|
.x.c:
|
|
|
|
@echo generating $@...
|
|
|
|
@rpcgen -c ${.IMPSRC} -o ${.TARGET}
|
|
|
|
|
|
|
|
.x.h:
|
|
|
|
@echo generating $@...
|
|
|
|
@rpcgen -h ${.IMPSRC} -o ${.TARGET}
|