How to install srilm

hongfei jiang hfei.jiang at gmail.com
Fri Dec 16 06:28:41 PST 2005


Dear everyone,

     I have upacked the srilm toolkit in the directory
     /home/Franz
     Then how could I install it?
below is the  Makefile in directory /home/Franz:
But i dont know how to set it.
I am newer for linux platform , could anyone tell me in detailed.
Thank you very much.
========================================================

#
# Top-level Makefile for SRILM
#
# $Header: /home/srilm/devel/RCS/Makefile,v 1.31 2005/08/21 04:54:58 stolcke
Exp $
#

# SRILM = /home/speech/stolcke/project/srilm/devel
MACHINE_TYPE := $(shell $(SRILM)/sbin/machine-type)

RELEASE := $(shell cat RELEASE)

MODULES = \
 misc \
 dstruct \
 lm \
 flm \
 lattice \
 utils \
 htk  a

EXCLUDE = \
 me \
 contrib \
 lm/src/test \
 flm/src/test \
 lattice/src/test \
 dstruct/src/test \
 utils/src/fsmtest \
 test/output \
 EXCLUDE

MAKE_VARS = \
 SRILM=$(SRILM) \
 MACHINE_TYPE=$(MACHINE_TYPE) \
 OPTION=$(OPTION)

World: dirs
 $(MAKE) init
 $(MAKE) release-headers
 $(MAKE) depend
 $(MAKE) release-libraries
 $(MAKE) release-programs
 $(MAKE) release-scripts
dirs:
 -mkdir include lib bin

init depend all programs release clean cleaner cleanest sanitize desanitize
\
release-headers release-libraries release-programs release-scripts:
 for subdir in $(MODULES); do \
  (cd $$subdir/src; $(MAKE) $(MAKE_VARS) $@); \
 done

# files needed for the web page
WWW_DOCS = CHANGES License INSTALL RELEASE
WWW_DIR = /home/spftp/www/DocumentRoot/projects/srilm

www: $(WWW_DOCS)
 ginstall -m 444 $(WWW_DOCS) $(WWW_DIR)/docs
 ginstall -m 444 man/html/* $(WWW_DIR)/manpages

TAR = /usr/local/gnu/bin/tar-1.12

package: EXCLUDE
 $(TAR) cvzXf EXCLUDE ../srilm-$(RELEASE).tar.gz .

package_notest: EXCLUDE
 echo test >> EXCLUDE
 $(TAR) cvzXf EXCLUDE ../srilm-$(RELEASE)-notest.tar.gz .
 rm EXCLUDE

package_x:
 $(MAKE) $(MAKE_VARS) sanitize
 $(MAKE) $(MAKE_VARS) RELEASE=$(RELEASE)_x package
 $(MAKE) $(MAKE_VARS) desanitize

EXCLUDE: force
 (find bin/* lib/* */bin/* */obj/* -type d -print -prune ; \
 find $(EXCLUDE) include bin -type f -print; \
 find . \( -name "*.~[0-9]*" -o -name Dependencies.\* -o -name core -o -name
\*.3rdparty -o -name out.\* \) -print; \
 find . -name RCS -print) | \
 sed 's,^\./,,' > $@

force:

 ========================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20051216/91f22bb1/attachment.html>


More information about the SRILM-User mailing list