summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-08-19 13:29:41 +0200
committerAustin Foxley <austinf@cetoncorp.com>2009-08-19 13:07:16 -0700
commit6d60af317b121114973c01954906b4713799496e (patch)
tree463d07e00008003f2d5a695d70ff1a6c96cda87b
parent6113cee2036af8e3b69bf046d6df2aa1dd245b2d (diff)
downloaduClibc-alpine-6d60af317b121114973c01954906b4713799496e.tar.bz2
uClibc-alpine-6d60af317b121114973c01954906b4713799496e.tar.xz
use pwd, not PWD
PWD may point to somewhere else if we're run from another make Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
-rw-r--r--extra/locale/Makefile.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/extra/locale/Makefile.in b/extra/locale/Makefile.in
index dd62071ba..4902ce14d 100644
--- a/extra/locale/Makefile.in
+++ b/extra/locale/Makefile.in
@@ -80,7 +80,7 @@ $(locale_OUT)/codesets.txt:
echo " "; \
echo "You do not have a codesets.txt file. Please create this "; \
echo "file in the $(locale_OUT) directory by running something like: "; \
- echo " find $(PWD)/$(locale_DIR)/charmaps -name \"*.pairs\" > \\"; \
+ echo " find $(shell pwd)/$(locale_DIR)/charmaps -name \"*.pairs\" > \\"; \
echo " $@"; \
echo "and then edit that file to disable/enable the codesets you wish to support. "; \
echo " "; \
@@ -107,14 +107,15 @@ else
$(locale_OUT)/codesets.txt:
@$(disp_gen)
ifeq ($(UCLIBC_BUILD_MINIMAL_LOCALE),y)
- $(Q)echo "$(PWD)/$(locale_DIR)/charmaps/ASCII.pairs" > $@ ; \
- $(Q)echo "$(PWD)/$(locale_DIR)/charmaps/ISO-8859-1.pairs" >> $@
+ $(Q)echo "$(shell pwd)/$(locale_DIR)/charmaps/ASCII.pairs" > $@ ; \
+ $(Q)echo "$(shell pwd)/$(locale_DIR)/charmaps/ISO-8859-1.pairs" >> $@
else
$(Q)set -e; \
tmp=`mktemp $@.XXXXXX 2>/dev/null || true`; \
[ -z "$$tmp" ] && tmp='$@.new'; \
- find $(PWD)/$(locale_DIR)/charmaps/ -name '*.pairs' | \
+ find $(shell pwd)/$(locale_DIR)/charmaps/ -name '*.pairs' | \
sort > $$tmp; \
+ [ -s $$tmp ]; \
if cmp $@ $$tmp >/dev/null 2>&1; then \
$(RM) $$tmp; \
else \