This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
remove a build warning
- From: Bruno Haible <bruno at clisp dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Thu, 16 May 2002 13:18:50 +0200 (CEST)
- Subject: remove a build warning
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,\