]> git.sur5r.net Git - openldap/blobdiff - libraries/liblunicode/Makefile.in
Fix typo
[openldap] / libraries / liblunicode / Makefile.in
index fcc12459035336cecae2585c7b53f3fcd71f9053..f746964fd26f2c08148e346a57e3184e425d516d 100644 (file)
@@ -1,14 +1,17 @@
 # $OpenLDAP$
+## Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
 ##
 ## Makefile.in for LDAP -lldap
 ##
 LIBRARY = liblunicode.a
 
-XXDIR = */
+XXDIR = $(srcdir)/*/
 XXHEADERS = ucdata.h ure.h
+
 XXSRCS = ucdata.c ucgendat.c ure.c urestubs.c
-SRCS   = 
-OBJS   = ucdata.o ure.o urestubs.o
+SRCS   = ucstr.c
+OBJS   = ucdata.o ure.o urestubs.o ucstr.o
 
 XLIB = -llunicode
 PROGRAMS = ucgendat
@@ -17,18 +20,28 @@ LDAP_INCDIR= ../../include
 LDAP_LIBDIR= ../../libraries
 
 ucgendat: $(LIBRARY) ucgendat.o
-       $(LTLINK) $(LDFLAGS) -o $@ ucgendat.o $(LIBS)
+       $(LTLINK) -o $@ ucgendat.o $(LIBS)
+       ./ucgendat $(srcdir)/UnicodeData.txt -x $(srcdir)/CompositionExclusions.txt
+
+DATFILES = case.dat cmbcl.dat comp.dat ctype.dat decomp.dat num.dat
+
+install-local: $(PROGRAMS) FORCE
+       -$(MKDIR) $(DESTDIR)$(datadir)/ucdata
+       @for i in $(DATFILES); do \
+               echo $(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(DESTDIR)$(datadir)/ucdata; \
+               $(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(DESTDIR)$(datadir)/ucdata; \
+       done
 
 .links :
        @for i in $(XXSRCS) $(XXHEADERS); do \
                $(RM) $$i ; \
-               $(LN_S) $(srcdir)/$(XXDIR)/$$i . ; \
+               $(LN_S) $(XXDIR)$$i . ; \
        done
        touch .links
 
 $(XXSRCS) : .links
 
 clean-local: FORCE
-       @$(RM) .links
+       @$(RM) *.dat .links
 
 depend-common: .links