From e600274308c2daed28b72e673f293f514e91bf7b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 4 Sep 1994 19:17:36 +0000 Subject: (subdirs): Use sed to remove comments from Subdirs files. --- Make-dist | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Make-dist') 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) -- cgit v1.2.3