2009-02-16 12:23:29 +00:00
|
|
|
#
|
|
|
|
# default base directory for YAP installation
|
|
|
|
#
|
|
|
|
ROOTDIR = @prefix@
|
|
|
|
#
|
|
|
|
# where the binary should be
|
|
|
|
#
|
|
|
|
BINDIR = $(ROOTDIR)/bin
|
|
|
|
#
|
|
|
|
# where YAP should look for libraries
|
|
|
|
#
|
2010-06-01 00:38:42 +01:00
|
|
|
LIBDIR=@libdir@
|
|
|
|
YAPLIBDIR=@libdir@/Yap
|
2009-02-16 12:23:29 +00:00
|
|
|
#
|
|
|
|
# where YAP should look for architecture-independent Prolog libraries
|
|
|
|
#
|
|
|
|
SHAREDIR=$(ROOTDIR)/share/Yap
|
|
|
|
#
|
2012-03-22 19:10:15 +00:00
|
|
|
# where YAP should store documentation
|
|
|
|
#
|
|
|
|
DOCDIR=$(ROOTDIR)/share/doc/Yap
|
|
|
|
EXDIR=$(DOCDIR)/examples/CLPBN
|
|
|
|
#
|
2009-02-16 12:23:29 +00:00
|
|
|
#
|
|
|
|
# You shouldn't need to change what follows.
|
|
|
|
#
|
|
|
|
INSTALL=@INSTALL@
|
|
|
|
INSTALL_DATA=@INSTALL_DATA@
|
|
|
|
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
|
|
|
srcdir=@srcdir@
|
|
|
|
|
2012-01-10 17:01:06 +00:00
|
|
|
CLPBN_TOP= $(srcdir)/clpbn.yap \
|
|
|
|
$(srcdir)/pfl.yap
|
2009-02-16 12:23:29 +00:00
|
|
|
|
|
|
|
CLPBN_SRCDIR = $(srcdir)/clpbn
|
|
|
|
|
|
|
|
CLPBN_LEARNING_SRCDIR = $(srcdir)/learning
|
|
|
|
|
2011-05-02 23:28:37 +01:00
|
|
|
CLPBN_EXDIR = $(srcdir)/examples
|
2009-02-16 12:23:29 +00:00
|
|
|
|
|
|
|
CLPBN_PROGRAMS= \
|
|
|
|
$(CLPBN_SRCDIR)/aggregates.yap \
|
2012-03-22 19:10:15 +00:00
|
|
|
$(CLPBN_SRCDIR)/bdd.yap \
|
2009-02-16 12:23:29 +00:00
|
|
|
$(CLPBN_SRCDIR)/bnt.yap \
|
|
|
|
$(CLPBN_SRCDIR)/connected.yap \
|
|
|
|
$(CLPBN_SRCDIR)/discrete_utils.yap \
|
|
|
|
$(CLPBN_SRCDIR)/display.yap \
|
|
|
|
$(CLPBN_SRCDIR)/dists.yap \
|
|
|
|
$(CLPBN_SRCDIR)/evidence.yap \
|
|
|
|
$(CLPBN_SRCDIR)/gibbs.yap \
|
|
|
|
$(CLPBN_SRCDIR)/graphs.yap \
|
|
|
|
$(CLPBN_SRCDIR)/graphviz.yap \
|
2012-01-10 17:01:06 +00:00
|
|
|
$(CLPBN_SRCDIR)/ground_factors.yap \
|
2009-02-16 12:23:29 +00:00
|
|
|
$(CLPBN_SRCDIR)/hmm.yap \
|
2012-03-22 19:10:15 +00:00
|
|
|
$(CLPBN_SRCDIR)/horus.yap \
|
2012-05-23 19:15:23 +01:00
|
|
|
$(CLPBN_SRCDIR)/horus_ground.yap \
|
|
|
|
$(CLPBN_SRCDIR)/horus_lifted.yap \
|
2009-02-16 12:23:29 +00:00
|
|
|
$(CLPBN_SRCDIR)/jt.yap \
|
|
|
|
$(CLPBN_SRCDIR)/matrix_cpt_utils.yap \
|
2009-05-02 20:11:54 +01:00
|
|
|
$(CLPBN_SRCDIR)/pgrammar.yap \
|
2009-02-16 12:23:29 +00:00
|
|
|
$(CLPBN_SRCDIR)/table.yap \
|
|
|
|
$(CLPBN_SRCDIR)/topsort.yap \
|
|
|
|
$(CLPBN_SRCDIR)/utils.yap \
|
2011-05-21 00:27:25 +01:00
|
|
|
$(CLPBN_SRCDIR)/ve.yap \
|
2009-02-16 12:23:29 +00:00
|
|
|
$(CLPBN_SRCDIR)/viterbi.yap \
|
|
|
|
$(CLPBN_SRCDIR)/xbif.yap
|
|
|
|
|
|
|
|
CLPBN_LEARNING_PROGRAMS= \
|
2011-09-24 21:37:50 +01:00
|
|
|
$(CLPBN_LEARNING_SRCDIR)/aleph_params.yap \
|
2009-02-16 12:23:29 +00:00
|
|
|
$(CLPBN_LEARNING_SRCDIR)/bnt_parms.yap \
|
|
|
|
$(CLPBN_LEARNING_SRCDIR)/em.yap \
|
|
|
|
$(CLPBN_LEARNING_SRCDIR)/learn_utils.yap \
|
|
|
|
$(CLPBN_LEARNING_SRCDIR)/mle.yap
|
|
|
|
|
|
|
|
CLPBN_SCHOOL_EXAMPLES= \
|
|
|
|
$(CLPBN_EXDIR)/School/README \
|
|
|
|
$(CLPBN_EXDIR)/School/evidence_128.yap \
|
|
|
|
$(CLPBN_EXDIR)/School/schema.yap \
|
2012-01-10 17:01:06 +00:00
|
|
|
$(CLPBN_EXDIR)/School/parschema.yap \
|
2009-02-16 12:23:29 +00:00
|
|
|
$(CLPBN_EXDIR)/School/school_128.yap \
|
|
|
|
$(CLPBN_EXDIR)/School/school_32.yap \
|
2012-03-22 19:10:15 +00:00
|
|
|
$(CLPBN_EXDIR)/School/sch32.yap \
|
|
|
|
$(CLPBN_EXDIR)/School/school32_data.yap \
|
2009-02-16 12:23:29 +00:00
|
|
|
$(CLPBN_EXDIR)/School/school_64.yap \
|
|
|
|
$(CLPBN_EXDIR)/School/tables.yap
|
|
|
|
|
2011-05-02 23:28:37 +01:00
|
|
|
CLPBN_HMMER_EXAMPLES= \
|
|
|
|
$(CLPBN_EXDIR)/HMMer/Artemia.fa \
|
|
|
|
$(CLPBN_EXDIR)/HMMer/fasta.yap \
|
|
|
|
$(CLPBN_EXDIR)/HMMer/globin.hmm \
|
|
|
|
$(CLPBN_EXDIR)/HMMer/globin.yap \
|
|
|
|
$(CLPBN_EXDIR)/HMMer/plan7.yap \
|
|
|
|
$(CLPBN_EXDIR)/HMMer/scan.yap \
|
|
|
|
$(CLPBN_EXDIR)/HMMer/score.yap
|
|
|
|
|
2009-02-16 12:23:29 +00:00
|
|
|
CLPBN_EXAMPLES= \
|
|
|
|
$(CLPBN_EXDIR)/cg.yap \
|
|
|
|
$(CLPBN_EXDIR)/sprinkler.yap
|
|
|
|
|
|
|
|
|
|
|
|
install: $(CLBN_TOP) $(CLBN_PROGRAMS) $(CLPBN_PROGRAMS)
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/clpbn
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/clpbn/learning
|
2012-03-22 19:10:15 +00:00
|
|
|
mkdir -p $(DESTDIR)$(EXDIR)
|
|
|
|
mkdir -p $(DESTDIR)$(EXDIR)/School
|
|
|
|
mkdir -p $(DESTDIR)$(EXDIR)/HMMer
|
2009-02-16 12:23:29 +00:00
|
|
|
for h in $(CLPBN_TOP); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR); done
|
|
|
|
for h in $(CLPBN_PROGRAMS); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR)/clpbn; done
|
|
|
|
for h in $(CLPBN_LEARNING_PROGRAMS); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR)/clpbn/learning; done
|
2012-03-22 19:10:15 +00:00
|
|
|
for h in $(CLPBN_EXAMPLES); do $(INSTALL_DATA) $$h $(DESTDIR)$(EXDIR); done
|
|
|
|
for h in $(CLPBN_SCHOOL_EXAMPLES); do $(INSTALL_DATA) $$h $(DESTDIR)$(EXDIR)/School; done
|
|
|
|
for h in $(CLPBN_HMMER_EXAMPLES); do $(INSTALL_DATA) $$h $(DESTDIR)$(EXDIR)/HMMer; done
|
2009-02-16 12:23:29 +00:00
|
|
|
|