(all-headers): Instead of removing rpcsvc/%, use $(wildcard) to remove all
authorroland <roland>
Wed, 3 Aug 1994 01:28:04 +0000 (01:28 +0000)
committerroland <roland>
Wed, 3 Aug 1994 01:28:04 +0000 (01:28 +0000)
headers that don't exist at top level, but preserve top-level $(headers).

Make-dist

index 0c4ca31..1df32e2 100644 (file)
--- a/Make-dist
+++ b/Make-dist
@@ -46,11 +46,8 @@ else
 +distinfo := $(shell MAKEFLAGS= MFLAGS= $(MAKE) -s no_deps=t no_ir=t \
                     echo-distinfo | grep -v '^make')
 all-headers := $(patsubst +header+%,%,$(filter +header+%,$(+distinfo)))
-# Filter out the generated rpc headers; they don't have top-level indirections.
-# It is not safe to use `$(wildcard $(all-headers))' to ignore headers
-# without top-level indirections because some of $(all-headers) might need
-# to be found in sysdeps/.
-all-headers := $(filter-out rpcsvc/%,$(all-headers))
+# Ignore subdir headers without top-level indirections.
+all-headers := $(sort $(headers) $(wildcard $(all-headers)))
 +subdir-nodist := $(patsubst +nodist+%,%,$(filter +nodist+%,$(+distinfo)))
 +subdir-headers := $(filter-out $(headers),$(all-headers))
 endif