about summary refs log tree commit diff
path: root/MakeTAGS
diff options
context:
space:
mode:
Diffstat (limited to 'MakeTAGS')
-rw-r--r--MakeTAGS11
1 files changed, 6 insertions, 5 deletions
diff --git a/MakeTAGS b/MakeTAGS
index 8e7781a192..e96dda48bc 100644
--- a/MakeTAGS
+++ b/MakeTAGS
@@ -62,10 +62,11 @@ all-dirs := $(subdir-dirs) \
 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,\
@@ -172,7 +173,7 @@ $P/libc.pot: $(all-pot)
 	sed -e 's/VERSION/$(version)/' \
 	    -e "s/DATE/`date +'%Y-%m-%d %H:%M'$$disp`/" \
 	    po/header.pot > $@.new
-	$(XGETTEXT) -d - --omit-header -n -s $^ >> $@.new
+	$(XGETTEXT) -d - --omit-header -n $^ >> $@.new
 	mv -f $@.new $@
 ifeq ($(with-cvs),yes)
 	test ! -d CVS || cvs $(CVSOPTS) ci -m'Regenerated from source files' $@