summaryrefslogtreecommitdiff
path: root/Make-dist
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1992-09-04 01:41:43 +0000
committerRoland McGrath <roland@gnu.org>1992-09-04 01:41:43 +0000
commit8a68ca943c32e3247610f7f79b0cd8b3d84c44f4 (patch)
tree516df61ea0f1819bac2678febdc8083bf457c4ff /Make-dist
parentfc18b0362a82622e114e1b3279cd2ea68a781bc2 (diff)
Formerly ../Make-dist.~46~
Diffstat (limited to 'Make-dist')
-rw-r--r--Make-dist13
1 files changed, 9 insertions, 4 deletions
diff --git a/Make-dist b/Make-dist
index 4a342c7f9b..7713af5fb9 100644
--- a/Make-dist
+++ b/Make-dist
@@ -61,18 +61,23 @@ try-sysdeps := $(foreach dir,$(..)sysdeps/stub $(..)sysdeps/generic,\
foo:=$(shell echo 'try-sysdeps=$(try-sysdeps)'>&2)
+sysdeps := $(wildcard $(try-sysdeps))
foo:=$(shell echo 'stub/generic +sysdeps=$(+sysdeps)'>&2)
-+sysdeps := $(notdir $(+sysdeps)) # Get just the file names.
++sysdep-names := $(sort $(notdir $(+sysdeps)))
+foo:=$(shell echo '+sysdep-names=$(+sysdep-names)' >&2)
+
# Now find all the sysdep versions of those files.
+sysdeps := $(wildcard $(foreach dir,$(sysdep_dirs) $(source_dirs),\
- $(addprefix $(dir)/,$(+sysdeps))))
+ $(addprefix $(dir)/, \
+ $(+sysdep-names) \
+ $(+sysdep-names:.c=.s) \
+ $(+sysdep-names:.c=.S) \
+ )))
+
# Source and header files to go in the distribution tar file.
.S.s := $(wildcard $(sources:.c=.S) $(sources:.c=.s))
sources := $(filter-out $(addsuffix .c,$(basename $(.S.s))),$(sources)) $(.S.s)
-+sysdep-names := $(sort $(notdir $(+sysdeps)))
-foo:=$(shell echo '+sysdep-names=$(+sysdep-names)' >&2)
+out := $(patsubst %.S,%.c,$(+sysdep-names:.s=.c)) \
$(addsuffix .c,$(sysdep_routines)) \
$(+subdir-nodist)