# this makefile has been taken from gerodic. 

include @top_builddir@/makerule.mk
  top_srcdir = @top_srcdir@
      srcdir = @srcdir@
top_builddir = @top_builddir@
 WNNJUTILOBJ = $(top_builddir)/Wnn/jutil

INSTALL         = @INSTALL@ $(INSTALLFLAGS)
LOCAL_INSTFLAGS = -o ${WNNOWNER}

ATOD=${WNNJUTILOBJ}/atod

WNNTOUCH=${WNNJUTILOBJ}/wnntouch

HINSI=${PUBDICPLUSSRC}/hinsi.data

LDICDIR=${JWNNDICDIR}/misc

SRC=$(srcdir)/ldic.u
OBJ=ldic.dic

all:: ${OBJ}

$(OBJ): $(SRC)
	${ATOD} -h ${HINSI} ${OBJ} < ${SRC}

install:: ${OBJ}
	@if [ -d $(DESTDIR)$(LDICDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(LDICDIR)); fi
	chown ${WNNOWNER} $(DESTDIR)$(LDICDIR)
	$(INSTALL) $(INSTDATFLAGS) $(LOCAL_INSTFLAGS) ${OBJ} $(DESTDIR)$(LDICDIR)
	${WNNTOUCH} $(DESTDIR)$(LDICDIR)/${OBJ}

clean::
	$(RM) ${OBJ}
