summaryrefslogtreecommitdiffstats
path: root/include/rpcsvc/Makefile
blob: e72a622d7c91c384b8c1f4504b7be77d4e4b280d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#	from: @(#)Makefile	2.3 88/08/11 4.0 RPCSRC
#	$Id: Makefile,v 1.2 1994/08/28 17:44:10 bde Exp $

.SUFFIXES: .x

RPCCOM = rpcgen

HDRS= klm_prot.h mount.h nfs_prot.h nlm_prot.h rex.h rnusers.h\
      rquota.h rstat.h rwall.h sm_inter.h spray.h yppasswd.h yp.h
XFILES= bootparam_prot.x klm_prot.x mount.x nfs_prot.x nlm_prot.x \
      rex.x rnusers.x rquota.x rstat.x rwall.x sm_inter.x spray.x \
      yppasswd.x yp.x
HFILES= yp_prot.h ypclnt.h

CLEANFILES+= ${HDRS}

all: ${HDRS}

install: all
	@${ECHO} "Creating RPC service headers directory"
	@/bin/rm -rf ${DESTDIR}/usr/include/rpcsvc
	@-mkdir ${DESTDIR}/usr/include/rpcsvc
	@${ECHO} "Installing RPC service header and definition files"
	@for i in $(XFILES); do \
		(install -c -m 644 ${.CURDIR}/$$i ${DESTDIR}/usr/include/rpcsvc) done
	@for i in $(HDRS); do \
		(install ${COPY} -m 644 $$i ${DESTDIR}/usr/include/rpcsvc) done
	@for i in $(HFILES); do \
		(install -c -m 644 ${.CURDIR}/$$i ${DESTDIR}/usr/include/rpcsvc) done
	@chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/rpcsvc
	@chmod -R 755 ${DESTDIR}/usr/include/rpcsvc

.x.h:
	@${ECHO} generating $@...
	@CURPWD=`pwd` ; cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o $$CURPWD/$@

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud