Browse Source

Fixup build a bit more

Eric Andersen 22 years ago
parent
commit
fb1c180bcc
2 changed files with 17 additions and 6 deletions
  1. 9 4
      extra/locale/Makefile
  2. 8 2
      libc/misc/locale/Makefile

+ 9 - 4
extra/locale/Makefile

@@ -1,5 +1,6 @@
 
 TOPDIR = ../../
+EXTRA_LOCALE_DIR:=${shell cd $(TOPDIR)/extra/locale && pwd}
 include $(TOPDIR)Rules.mak
 
 CFLAGS_wc8bit=-DCTYPE_PACKED=1
@@ -17,7 +18,8 @@ codesets.txt:
 	    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 -e "  find $(EXTRA_LOCALE_DIR)/charmaps -name \"*.pairs\" > \\"; \
+	    echo -e "        $(EXTRA_LOCALE_DIR)/codesets.txt"; \
 	    echo "and then edit that file to disable/enable the codesets you wish to support. "; \
 	    echo " "; \
 	    /bin/false; \
@@ -51,9 +53,12 @@ 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 "You do not have a locales.txt file in the extra/locale "; \
+	    echo "directory, Please copy the LOCALES file to locales.txt by "; \
+	    echo "running something like: "; \
+	    echo "  cp $(EXTRA_LOCALE_DIR)/LOCALES \\ "; \
+	    echo "      $(EXTRA_LOCALE_DIR)/locales.txt "; \
+	    echo "then edit locales.txt to disable/enable the locales you wish "; \
 	    echo "to support. "; \
 	    echo " "; \
 	    /bin/false; \

+ 8 - 2
libc/misc/locale/Makefile

@@ -1,7 +1,7 @@
 # Makefile for uClibc
 #
 # Copyright (C) 2000 by Lineo, inc.
-# Copyright (C) 2000,2001 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2002 Erik Andersen <andersen@uclibc.org>
 #
 # This program is free software; you can redistribute it and/or modify it under
 # the terms of the GNU Library General Public License as published by the Free
@@ -33,7 +33,7 @@ ifeq ($(HAS_LOCALE),true)
 	OBJS += locale_data.o
 endif
 
-all: $(OBJS) $(LIBC)
+all: data $(OBJS) $(LIBC)
 
 $(LIBC): ar-target
 
@@ -46,6 +46,12 @@ $(MOBJ): $(MSRC)
 
 $(OBJS): Makefile
 
+data:
+ifeq ($(HAS_LOCALE),true)
+	make -C $(TOPDIR)/extra/locale
+endif
+
 clean:
 	rm -f *.[oa] *~ core
 
+.PHONY: data