]> mj.ucw.cz Git - libucw.git/blobdiff - charset/Makefile
First version of the sorter. No presorting phase yet.
[libucw.git] / charset / Makefile
index 5cdd48983521aa14508674d5153e8ea8e8336c13..6c3d1c386a9b621fece00f9106ffa92b9bbcd866 100644 (file)
@@ -1,19 +1,22 @@
-# Makefile for the Sherlock Charset Data Files (c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+# Makefile for the Sherlock Charset Library (c) 1997--2000 Martin Mares <mj@ucw.cz>
 
-all: .stamp
+DIRS+=charset
 
-.stamp:
-       mkdir -p $(TOPDIR)/run/char
-       ln -sf `pwd`/set $(TOPDIR)/run/char
-       ln -sf `pwd`/exp $(TOPDIR)/run/char
-       touch .stamp
+UNI_OBJS=toupper.o tolower.o tocat.o utf8.o unaccent.o tosig.o strlen.o debug.o \
+       charconv.o setnames.o
 
-buildall:
-       rm -rf exp
-       mkdir exp
-       for a in `find set -type f` ; do b=`basename $$a` ; echo $$b ; misc/mkexpands $$b >exp/$$b ; done
+obj/charset/libcharset.a: $(addprefix obj/charset/,$(UNI_OBJS))
 
-tags:
+build_charsets: clean_charsets
+       misc/unisplit
+       misc/gentab _U_cat byte <misc/u-cat >U-cat.h
+       misc/gentab _U_lower word <misc/u-lower >U-lower.h
+       misc/gentab _U_upper word <misc/u-upper >U-upper.h
+       misc/mkunacc >misc/u-unacc
+       misc/gentab _U_unaccent word <misc/u-unacc >U-unacc.h
+       misc/mksig >misc/u-sig
+       misc/gentab _U_sig byte <misc/u-sig >U-sig.h
+       misc/tabgen <misc/chartable.in >chartable.h
 
-clean:
-       rm -f .stamp
+clean_charsets:
+       rm -f misc/u-* U-*.h chartable.h