Some bmake magic to clean up the install more.

fix another missed -c typo of mine.
clean the rpcgen implicit rule more

Submitted by: bde
This commit is contained in:
Peter Wemm 1996-08-30 19:31:28 +00:00
parent d49112c5f1
commit 0fd77885de
1 changed files with 6 additions and 10 deletions

View File

@ -1,10 +1,9 @@
# from: @(#)Makefile 2.3 88/08/11 4.0 RPCSRC
# $Id: Makefile,v 1.8 1996/06/05 03:47:18 wpaul Exp $
# $Id: Makefile,v 1.9 1996/08/29 19:59:48 peter Exp $
.SUFFIXES: .x
RPCCOM = rpcgen
BINMODE = 444
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 \
@ -19,16 +18,13 @@ CLEANFILES+= ${HDRS}
all: ${HDRS}
install: ${HDRS}
cd ${.CURDIR} && \
${INSTALL} -C -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
${HFILES} ${DESTDIR}/usr/include/rpcsvc
cd ${.CURDIR} && \
${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
${XFILES} ${DESTDIR}/usr/include/rpcsvc
${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} ${HDRS} \
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
${HFILES:S;^;${.CURDIR}/;} \
${XFILES:S;^;${.CURDIR}/;} \
${HDRS} \
${DESTDIR}/usr/include/rpcsvc
.x.h:
cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o ${.OBJDIR}/$@
${RPCCOM} -h ${.IMPSRC} -o ${.TARGET}
.include <bsd.prog.mk>