Thu Sep 26 13:44:29 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
authorthomas <thomas>
Thu, 26 Sep 1996 17:48:09 +0000 (17:48 +0000)
committerthomas <thomas>
Thu, 26 Sep 1996 17:48:09 +0000 (17:48 +0000)
* hurd/Makefile (installed-sunrpc-headers): New variable.
(sunrpc-headers): New variable.
(install-headers-nosubir): Depend on $(installed-sunrpc-headers),
not just <rpc/netdb.h>.
($(installed-sunrpc-headers)): Provide rule for all of these.

hurd/Makefile

index bb63065..e046a7d 100644 (file)
@@ -68,12 +68,15 @@ distribute += hurdmalloc.h
 include ../mach/Machrules
 include ../Rules
 \f
-# XXX sunrpc doesn't build yet for Hurd, but one of its headers is
+# XXX sunrpc doesn't build yet for Hurd, but its headers are
 # crucial nontheless.  So sysdeps/mach/hurd/Makefile elides sunrpc
-# from $(subdirs), and this rule arranges for the header in question
+# from $(subdirs), and this rule arranges for the headers in question
 # to get installed.
-install-headers-nosubdir: $(includedir)/rpc/netdb.h
-$(includedir)/rpc/netdb.h: $(..)sunrpc/rpc/netdb.h
+sunrpc-headers = netdb.h pmap_prot.h xdr.h types.h auth.h \
+       rpc_msg.h auth_unix.h
+installed-sunrpc-headers = $(addprefix $(includedir)/rpc/,$(sunrpc-headers))
+install-headers-nosubdir: $(installed-sunrpc-headers)
+$(installed-sunrpc-headers): $(includedir)/%: $(..)sunrpc/%
        $(do-install)