summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-12-04 06:37:34 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-12-04 06:37:34 +0000
commit2ed8ea7e4ace7fb1b3bb5b1ab9a23a9bf150193b (patch)
treee0818056e292e434a2c08c264d9a89143be1d629 /Makefile
parentde0c9a10efd21e3719dc33cb51ffb3d1615223c8 (diff)
Don't download the local data if we have it already.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ca58f2461..e40abf45b 100644
--- a/Makefile
+++ b/Makefile
@@ -160,13 +160,17 @@ endif
# Command used to download source code
WGET:=wget --passive-ftp
+LOCALE_DATA_FILENAME:=uClibc-locale-030818.tgz
+
pregen: headers
ifeq ($(strip $(UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA)),y)
(cd extra/locale; \
- $(WGET) http://www.uclibc.org/downloads/uClibc-locale-030818.tgz);
+ if [ ! -f $(LOCALE_DATA_FILENAME) ] ; then \
+ $(WGET) http://www.uclibc.org/downloads/$(LOCALE_DATA_FILENAME) ; \
+ fi );
endif
ifeq ($(strip $(UCLIBC_PREGENERATED_LOCALE_DATA)),y)
- (cd extra/locale; zcat uClibc-locale-030818.tgz | tar -xvf -)
+ (cd extra/locale; zcat $(LOCALE_DATA_FILENAME) | tar -xvf -)
make -C extra/locale pregen
endif