diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
commit | d6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch) | |
tree | ece253b876159b39c620e62b6c9b1174642e070e /lib/librpcsvc/Makefile |
initial import of NetBSD tree
Diffstat (limited to 'lib/librpcsvc/Makefile')
-rw-r--r-- | lib/librpcsvc/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/librpcsvc/Makefile b/lib/librpcsvc/Makefile new file mode 100644 index 00000000000..46b73650e7a --- /dev/null +++ b/lib/librpcsvc/Makefile @@ -0,0 +1,42 @@ +# $Id: Makefile,v 1.1 1995/10/18 08:43:10 deraadt Exp $ + + +RPCSRCS= 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 ${BINOWN} -g ${BINGRP} -m 755 \ + ${DESTDIR}/usr/include/rpcsvc + @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; \ + done + @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; \ + 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} |