# -*- makefile -*-

all: installed.dict

FILENAME = dictation-kit-v4.1.tar.gz
TARBALL = build/$(FILENAME)
TARBALL_URL = "http://sourceforge.jp/frs/redir.php?m=iij&f=%2Fjulius%2F51158%2F/$(FILENAME)"
TARBALL_PATCH =
SOURCE_DIR = build/dictation-kit-v4.1
UNPACK_CMD = tar xf
MD5SUM_FILE = $(FILENAME).md5sum
include $(shell rospack find mk)/download_unpack_build.mk

INSTALL_DIR = `rospack find julius`

installed.dict: $(SOURCE_DIR)/unpacked
	mv $(SOURCE_DIR)/model $(INSTALL_DIR)
	mv $(SOURCE_DIR)/doc $(INSTALL_DIR)/doc-dictation
	mv $(SOURCE_DIR)/*jconf $(INSTALL_DIR)
	rm -rf $(SOURCE_DIR)/src
	rm -rf $(SOURCE_DIR)/bin
	touch installed.dict

clean:
	rm -rf $(TARBALL)
	rm -rf $(SOURCE_DIR)
	rm -rf $(INSTALL_DIR)/doc-dictation
	rm -rf model
	rm -rf installed.dict
