work around faulty globbing in gnu make
svn path=/trunk/; revision=35053
This commit is contained in:
parent
d9dc95d9ef
commit
590f596822
8
Makefile
8
Makefile
@ -63,7 +63,13 @@ SOURCEUPDATES: | subdirs
|
||||
|
||||
SOURCEUPDATES: $(shell find ./ -name '*.sources')
|
||||
SOURCEREQS = $(shell ./build/source_globber.sh sourceglobs $@ |sed -r 's;$$;.??.xml;g')
|
||||
SOURCEDIRS = $(shell sed -rn 's;^(.*/)[^/]*:(\[\]|global)$$;\1;gp' $@)
|
||||
|
||||
# use shell globbing to work around faulty globbing in gnu make
|
||||
SOURCEDIRS = $(shell sed -rn 's;^(.*/)[^/]*:(\[\]|global)$$;\1;gp' $@ \
|
||||
| while read glob; do \
|
||||
printf '%s\n' $$glob; \
|
||||
done \
|
||||
)
|
||||
.SECONDEXPANSION:
|
||||
%.sources: $$(SOURCEDIRS) $$(SOURCEREQS)
|
||||
touch $@
|
||||
|
Loading…
Reference in New Issue
Block a user