summaryrefslogtreecommitdiff
path: root/extra/locale/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-05-07 01:30:56 +0000
committerEric Andersen <andersen@codepoet.org>2002-05-07 01:30:56 +0000
commited715392d08f4d38cee6a304ccf831cb665dc92b (patch)
tree49aa012bb2a28b777e7ca8f12c0e34d7cdc27642 /extra/locale/Makefile
parente6cbb8ad95a5b7586c71311e831969104d017b7c (diff)
When it is going to fail silently anyways, whine loudly and
abort early with instructions on what to do... -Erik
Diffstat (limited to 'extra/locale/Makefile')
-rw-r--r--extra/locale/Makefile23
1 files changed, 22 insertions, 1 deletions
diff --git a/extra/locale/Makefile b/extra/locale/Makefile
index 5d0617c7d..de985b458 100644
--- a/extra/locale/Makefile
+++ b/extra/locale/Makefile
@@ -12,7 +12,16 @@ endif
all: links-target
codesets.txt:
- echo You need to create a codesets.txt file. Read the README.
+ @if [ ! -f codesets.txt ] ; then \
+ set -e; \
+ echo " "; \
+ echo "You do not have a codesets.txt file. Please create this "; \
+ echo "file in the extra/locale directory by running something like: "; \
+ echo -e " find ./charmaps -name \"*.pairs\" > ./codesets.txt"; \
+ echo "and then edit that file to disable/enable the codesets you wish to support. "; \
+ echo " "; \
+ /bin/false; \
+ fi;
gen_wc8bit: gen_wc8bit.c
gcc -Os -Wall $(CFLAGS_wc8bit) gen_wc8bit.c -o gen_wc8bit
@@ -38,6 +47,18 @@ locale_tables.h: gen_locale locales.txt
lt_defines.h: locale_tables.h
grep "^#define" locale_tables.h > lt_defines.h
+locales.txt:
+ @if [ ! -f locales.txt ] ; then \
+ set -e; \
+ echo " "; \
+ echo "You do not have a locales.txt file. In the extra/locale "; \
+ echo "directory, Please copy the LOCALES file to locales.txt and "; \
+ echo "then edit that file to disable/enable the locales you wish "; \
+ echo "to support. "; \
+ echo " "; \
+ /bin/false; \
+ fi;
+
ifneq ($(TARGET_ARCH),$(NATIVE_ARCH))
locale.mmap: gen_mmap