summaryrefslogtreecommitdiff
path: root/Make-dist
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-09-04 19:17:36 +0000
committerRoland McGrath <roland@gnu.org>1994-09-04 19:17:36 +0000
commite600274308c2daed28b72e673f293f514e91bf7b (patch)
tree242f540233e480709766ba01d91c16b11f24c0c1 /Make-dist
parent7d92eff62fd84e4365da8b5ce6bcca44cfb16518 (diff)
(subdirs): Use sed to remove comments from Subdirs files.
Diffstat (limited to 'Make-dist')
-rw-r--r--Make-dist8
1 files changed, 5 insertions, 3 deletions
diff --git a/Make-dist b/Make-dist
index 1df32e2ddb..8dd2a0db9f 100644
--- a/Make-dist
+++ b/Make-dist
@@ -139,10 +139,12 @@ foo:=$(shell echo parent foobie>&2)
foo:=$(shell echo +sysdep-distfiles='$(+sysdep-distfiles)'>&2)
sysdep-Subdir-files := $(wildcard $(addsuffix /Subdirs,$(sysdep_dirs)))
ifdef sysdep-Subdir-files
-subdirs := $(sort $(subdirs) $(shell cat $(sysdep-Subdir-files)))
+subdirs := $(sort $(subdirs) \
+ $(shell sed -e 's/\#.*$$//' $(sysdep-Subdir-files)))
endif
+sysdep-dist := $(foreach file,$(+sysdep-distfiles),\
- $(addprefix $(dir $(file)),$(shell cat $(file)))) \
+ $(addprefix $(dir $(file)), \
+ $(shell sed -e 's/\#.*$$//' $(file)))) \
$(+sysdep-distfiles) \
$(sysdep-Subdir-files)
foo:=$(shell echo '+sysdep-dist=$(+sysdep-dist)' >&2)
@@ -184,7 +186,7 @@ $(tardir).tar: dist.tar subdir_dist
%.gz: %
gzip -9 -v -c $< > $@
-foo:=$(shell echo 'subdirs=$(subdirs)' >&2)
+foo:=$(shell echo subdirs=$(subdirs) >&2)
dist-subdirs := $(addprefix dist-,$(subdirs)) # dist-manual
.PHONY: subdir_dist $(dist-subdirs)
subdir_dist: $(dist-subdirs)