From ed715392d08f4d38cee6a304ccf831cb665dc92b Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 7 May 2002 01:30:56 +0000 Subject: When it is going to fail silently anyways, whine loudly and abort early with instructions on what to do... -Erik --- extra/locale/Makefile | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'extra/locale/Makefile') 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 -- cgit v1.2.3