aboutsummaryrefslogtreecommitdiff
path: root/Makeconfig
diff options
context:
space:
mode:
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig15
1 files changed, 7 insertions, 8 deletions
diff --git a/Makeconfig b/Makeconfig
index 9938927..20fa1b0 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -789,14 +789,13 @@ $(common-objpfx)sysd-dirs: $(common-objpfx)config.make $(all-Subdirs-files)
all-Depend-files = $(wildcard $(..)*/Depend)
$(common-objpfx)sysd-sorted: $(..)scripts/gen-sorted.awk $(all-Depend-files) \
$(common-objpfx)sysd-dirs $(..)Makeconfig
- (if test "$(all-Depend-files)"; then \
- for f in $(all-Depend-files); do \
- dir=$${f%%/*}; \
- while read on; do \
- echo "depend $$dir $$on"; \
- done < $$f; \
- done; \
- fi; \
+ (files="$(all-Depend-files)"; \
+ for f in $$files; do \
+ dir=`echo $$f | sed 's/^$(..)\(.*\)\/[^/]*$$/\1/'`; \
+ while read on; do \
+ echo "depend $$dir $$on"; \
+ done < $$f; \
+ done; \
for f in $(all-subdirs); do \
echo $$f; \
done \