remove a build warning
Bruno Haible
bruno@clisp.org
Thu May 16 04:21:00 GMT 2002
This warning occurs during "make po/libc.pot":
MakeTAGS:124: target `soft-fp/TAGS' given more than once in the same rule.
MakeTAGS:180: target `po/soft-fp.pot' given more than once in the same rule.
The duplicate in $(subdirs) comes from the fact that both
sysdeps/powerpc/Subdirs and sysdeps/sparc/Subdirs contain 'soft-fp'.
Here is a patch to get rid of the warning, by use of the remove-duplicates
function builtin of 'make' (a function actually called 'sort').
2002-05-16 Bruno Haible <bruno@clisp.org>
* MakeTAGS (subdirs): Remove duplicates.
--- glibc-20020425/MakeTAGS.bak Mon Apr 22 13:44:46 2002
+++ glibc-20020425/MakeTAGS Thu May 16 12:19:50 2002
@@ -62,10 +62,11 @@
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,\
More information about the Libc-alpha
mailing list