# UNIX HTS-demo MAKEFILE
#
# This makefile will build various files for demonstraition of 
# HMM-based speech synthesis.
#
# When invoked it expects to have the following environment variables
# set
#      SPTKBINDIR      - set to the directory which includes SPTK executable
#      HTSBINDIR       - set to the directory which includes HTS (modified HTK) executable
#      DATADIR         - set to the directory where you expanded the data
#

CURRENTDIR = `pwd`
SPTKBINDIR = /usr/local/SPTK/bin
HTSBINDIR  = /home/zen/work/HTS-1.1.1/bin

# for English demonstration
#DATADIR    = /work/zen/hts_english/HTS-demo_CMU-ARCTIC-AWB
#NAME       = awb
#DATASET    = cmu_us_arctic
#MCEPORDER  = 24

# for Japanese demonstration
#DATADIR    = /work/zen/hts_english/HTS-demo_NIT-ATR503-M001
#NAME       = m001
#DATASET    = nit_jp_ATR503
#MCEPORDER  = 18

all:
	sed 's:CURRENTDIR:'${CURRENTDIR}':g' ${CURRENTDIR}/scripts/Training.in | \
	sed 's:SPTKBINDIR:'${SPTKBINDIR}':g' | \
	sed 's:HTSBINDIR:'${HTSBINDIR}':g'   | \
	sed 's:DATADIR:'${DATADIR}':g'       | \
	sed 's:NAME:'${NAME}':g'       | \
	sed 's:MCEPORDER:'${MCEPORDER}':g'           | \
	sed 's:DATASET:'${DATASET}':g' > ${CURRENTDIR}/scripts/Training_${DATASET}_${NAME}.pl

