Deleted Added
full compact
Makefile (16123) Makefile (17901)
1# from: @(#)Makefile 2.3 88/08/11 4.0 RPCSRC
1# from: @(#)Makefile 2.3 88/08/11 4.0 RPCSRC
2# $Id: Makefile,v 1.7 1995/08/15 20:06:50 joerg Exp $
2# $Id: Makefile,v 1.8 1996/06/05 03:47:18 wpaul Exp $
3
4.SUFFIXES: .x
5
6RPCCOM = rpcgen
7BINMODE = 444
8
9HDRS= klm_prot.h mount.h nfs_prot.h nlm_prot.h rex.h rnusers.h \
10 rquota.h rstat.h rwall.h sm_inter.h spray.h yppasswd.h yp.h \
11 ypxfrd.h
12XFILES= bootparam_prot.x klm_prot.x mount.x nfs_prot.x nlm_prot.x \
13 rex.x rnusers.x rquota.x rstat.x rwall.x sm_inter.x spray.x \
14 yppasswd.x yp.x ypxfrd.x
15HFILES= yp_prot.h ypclnt.h
16
17CLEANFILES+= ${HDRS}
3
4.SUFFIXES: .x
5
6RPCCOM = rpcgen
7BINMODE = 444
8
9HDRS= klm_prot.h mount.h nfs_prot.h nlm_prot.h rex.h rnusers.h \
10 rquota.h rstat.h rwall.h sm_inter.h spray.h yppasswd.h yp.h \
11 ypxfrd.h
12XFILES= bootparam_prot.x klm_prot.x mount.x nfs_prot.x nlm_prot.x \
13 rex.x rnusers.x rquota.x rstat.x rwall.x sm_inter.x spray.x \
14 yppasswd.x yp.x ypxfrd.x
15HFILES= yp_prot.h ypclnt.h
16
17CLEANFILES+= ${HDRS}
18RPCDIR= ${DESTDIR}/usr/include/rpcsvc
19EVERYTHING= $(XFILES) $(HFILES)
20
21all: ${HDRS}
22
18
19all: ${HDRS}
20
23install: all
24 @${ECHO} "Installing RPC service header and definition files"
25.for i in $(EVERYTHING)
26 @cd ${.CURDIR}; cmp -s $i $(RPCDIR)/$i || \
27 (${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
28 $i ${RPCDIR}; \
29 $(ECHO) $i)
30.endfor
31.for i in $(HDRS)
32 @cmp -s $i $(RPCDIR)/$i || \
33 (${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
34 $i ${RPCDIR}; \
35 $(ECHO) $i)
36.endfor
21install: ${HDRS}
22 cd ${.CURDIR} && \
23 ${INSTALL} -C -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
24 ${HFILES} ${DESTDIR}/usr/include/rpcsvc
25 cd ${.CURDIR} && \
26 ${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
27 ${XFILES} ${DESTDIR}/usr/include/rpcsvc
28 ${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} ${HDRS} \
29 ${DESTDIR}/usr/include/rpcsvc
37
38.x.h:
39 cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o ${.OBJDIR}/$@
40
41.include <bsd.prog.mk>
30
31.x.h:
32 cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o ${.OBJDIR}/$@
33
34.include <bsd.prog.mk>
42
43
44
45