# -*- makefile -*-

all: installed.julius

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

INSTALL_DIR = `rospack find julius`

installed.julius: $(SOURCE_DIR)/unpacked
	(cd $(SOURCE_DIR); ./configure --prefix=$(INSTALL_DIR); make; make install)
	touch installed.julius

clean:
	rm -rf $(TARBALL)
	rm -rf $(SOURCE_DIR)
	rm -rf bin
	rm -rf include
	rm -rf lib
	rm -rf man
	rm -rf installed.julius
