#
# Copyright (C) 2007, 2008 Kazuhiro Ito
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#

CONF_FILE = oald7cg-fpw.conf
SRCDIR = ./SRC
SOURCES = ${SRCDIR}/CONTENT.tda ${CONF_FILE} ../tables
HALFCHARS = ../gaiji/halfchar.txt
FPWPARSER = ../fpwoald7
FPWPARSERFLAGS = ${CONF_FILE} ${SRCDIR}
ARCHIVEEXTRA = ${CONF_FILE}

.SUFFIXES:

include fpwutils.mk

${CGRAPH_DEP}: ${CONF_FILE}
	@rm -f ${CGRAPH_DEP}
	test -d ${WORKDIR} || ${MKDIRHIER} ${WORKDIR}
	${PERL} ${PERLINCFLAGS} ${PERLFLAGS} ../oald7cgraph \
	   -workdir ${WORKDIR} -srcdir ${SRCDIR}/images -conf ${CONF_FILE}
	@echo timestamp > ${CGRAPH_DEP}
