summaryrefslogtreecommitdiff
path: root/lib/librpcsvc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librpcsvc/Makefile')
-rw-r--r--lib/librpcsvc/Makefile23
1 files changed, 12 insertions, 11 deletions
diff --git a/lib/librpcsvc/Makefile b/lib/librpcsvc/Makefile
index d8ffea56cca..6111df28faf 100644
--- a/lib/librpcsvc/Makefile
+++ b/lib/librpcsvc/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.2 1996/05/04 09:16:14 deraadt Exp $
+# $OpenBSD: Makefile,v 1.3 1996/05/06 21:44:28 deraadt Exp $
RPCSRCS= bootparam_prot.x klm_prot.x mount.x nfs_prot.x\
@@ -15,18 +15,21 @@ NOPIC=
all: ${HDRS}
beforedepend: ${HDRS}
-includes:
+includes: ${HDRS}
install -d -o ${BINOWN} -g ${BINGRP} -m 755 \
${DESTDIR}/usr/include/rpcsvc
+ @echo installing rpc .h and .x files
@for i in $(HDRS); do \
cmp -s $$i ${DESTDIR}/usr/include/rpcsvc/$$i || \
- install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
- ${DESTDIR}/usr/include/rpcsvc; \
+ { j="install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
+ ${DESTDIR}/usr/include/rpcsvc"; \
+ echo $$j; $$j; } \
done
- @for i in $(RPCSRCS); do \
+ @cd ${.CURDIR}; for i in $(RPCSRCS); do \
cmp -s $(.CURDIR)/$$i ${DESTDIR}/usr/include/rpcsvc/$$i || \
- install -c -o ${BINOWN} -g ${BINGRP} -m 444 $(.CURDIR)/$$i \
- ${DESTDIR}/usr/include/rpcsvc; \
+ { j="install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
+ ${DESTDIR}/usr/include/rpcsvc"; \
+ echo $$j; $$j; } \
done
# new suffixes have to go afterwards, because bsd.lib.mk clears them
@@ -34,9 +37,7 @@ includes:
.SUFFIXES: .x .c .h
.x.c:
- @echo generating $@...
- @rpcgen -c ${.IMPSRC} -o ${.TARGET}
+ rpcgen -c ${.IMPSRC} -o ${.TARGET}
.x.h:
- @echo generating $@...
- @rpcgen -h ${.IMPSRC} -o ${.TARGET}
+ rpcgen -h ${.IMPSRC} -o ${.TARGET}