(subdirs): Remove duplicates.
authordrepper <drepper>
Mon, 20 May 2002 18:58:11 +0000 (18:58 +0000)
committerdrepper <drepper>
Mon, 20 May 2002 18:58:11 +0000 (18:58 +0000)
MakeTAGS

index 8e7781a..6aa8937 100644 (file)
--- a/MakeTAGS
+++ b/MakeTAGS
@@ -62,10 +62,11 @@ all-dirs := $(subdir-dirs) \
 ifndef subdir
 subdirs := $(subdirs) \
           $(filter-out $(subdirs),\
 ifndef subdir
 subdirs := $(subdirs) \
           $(filter-out $(subdirs),\
-                       $(shell sed -e 's/\#.*$$//' \
-                                   $(wildcard $(addsuffix /Subdirs,\
-                                                          $(all-dirs)))\
-                                   /dev/null))
+                       $(sort \
+                         $(shell sed -e 's/\#.*$$//' \
+                                     $(wildcard $(addsuffix /Subdirs,\
+                                                            $(all-dirs)))\
+                                     /dev/null)))
 all-dist = $(foreach Dist,$(wildcard $(all-dirs:%=%/Dist)),\
                     $(addprefix $(Dist:%/Dist=%)/,\
                                 $(filter %.c %.h %.S %.s,\
 all-dist = $(foreach Dist,$(wildcard $(all-dirs:%=%/Dist)),\
                     $(addprefix $(Dist:%/Dist=%)/,\
                                 $(filter %.c %.h %.S %.s,\