2004-07-23 20:10:11 +01:00
|
|
|
#
|
|
|
|
# default base directory for YAP installation
|
|
|
|
#
|
|
|
|
ROOTDIR = @prefix@
|
|
|
|
#
|
|
|
|
# where the binary should be
|
|
|
|
#
|
|
|
|
BINDIR = $(ROOTDIR)/bin
|
|
|
|
#
|
|
|
|
# where YAP should look for libraries
|
|
|
|
#
|
|
|
|
LIBDIR=$(ROOTDIR)/lib/Yap
|
|
|
|
#
|
|
|
|
# where YAP should look for architecture-independent Prolog libraries
|
|
|
|
#
|
|
|
|
SHAREDIR=$(ROOTDIR)/share/Yap
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# You shouldn't need to change what follows.
|
|
|
|
#
|
|
|
|
INSTALL=@INSTALL@
|
|
|
|
INSTALL_DATA=@INSTALL_DATA@
|
|
|
|
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
|
|
|
srcdir=@srcdir@
|
|
|
|
|
|
|
|
CLPBN_TOP= $(srcdir)/clpbn.yap
|
|
|
|
|
2006-01-17 14:10:42 +00:00
|
|
|
CLPBN_SRCDIR = $(srcdir)/clpbn
|
|
|
|
|
2008-02-12 17:03:59 +00:00
|
|
|
CLPBN_LEARNING_SRCDIR = $(srcdir)/learning
|
|
|
|
|
2006-01-17 14:10:42 +00:00
|
|
|
CLPBN_EXDIR = $(srcdir)/clpbn/examples
|
|
|
|
|
2004-07-23 20:10:11 +01:00
|
|
|
CLPBN_PROGRAMS= \
|
2006-01-17 14:10:42 +00:00
|
|
|
$(CLPBN_SRCDIR)/aggregates.yap \
|
|
|
|
$(CLPBN_SRCDIR)/bnt.yap \
|
|
|
|
$(CLPBN_SRCDIR)/discrete_utils.yap \
|
2007-07-07 02:52:57 +01:00
|
|
|
$(CLPBN_SRCDIR)/display.yap \
|
2007-07-13 01:52:54 +01:00
|
|
|
$(CLPBN_SRCDIR)/dists.yap \
|
2006-01-17 14:10:42 +00:00
|
|
|
$(CLPBN_SRCDIR)/evidence.yap \
|
|
|
|
$(CLPBN_SRCDIR)/gibbs.yap \
|
|
|
|
$(CLPBN_SRCDIR)/graphs.yap \
|
|
|
|
$(CLPBN_SRCDIR)/graphviz.yap \
|
|
|
|
$(CLPBN_SRCDIR)/hmm.yap \
|
2007-11-28 23:52:14 +00:00
|
|
|
$(CLPBN_SRCDIR)/jt.yap \
|
2007-11-16 14:58:41 +00:00
|
|
|
$(CLPBN_SRCDIR)/matrix_cpt_utils.yap \
|
2006-01-17 14:10:42 +00:00
|
|
|
$(CLPBN_SRCDIR)/topsort.yap \
|
|
|
|
$(CLPBN_SRCDIR)/utils.yap \
|
|
|
|
$(CLPBN_SRCDIR)/vel.yap \
|
|
|
|
$(CLPBN_SRCDIR)/viterbi.yap \
|
|
|
|
$(CLPBN_SRCDIR)/xbif.yap
|
2004-07-23 20:10:11 +01:00
|
|
|
|
2008-02-12 17:03:59 +00:00
|
|
|
CLPBN_LEARNING_PROGRAMS= \
|
|
|
|
$(CLPBN_LEARNING_SRCDIR)/bnt_parms.yap \
|
|
|
|
$(CLPBN_LEARNING_SRCDIR)/learn_utils.yap \
|
|
|
|
$(CLPBN_LEARNING_SRCDIR)/mle.yap
|
|
|
|
|
2008-03-27 00:41:33 +00:00
|
|
|
CLPBN_SCHOOL_EXAMPLES= \
|
2006-01-17 14:10:42 +00:00
|
|
|
$(CLPBN_EXDIR)/School/README \
|
|
|
|
$(CLPBN_EXDIR)/School/evidence_128.yap \
|
|
|
|
$(CLPBN_EXDIR)/School/schema.yap \
|
|
|
|
$(CLPBN_EXDIR)/School/school_128.yap \
|
|
|
|
$(CLPBN_EXDIR)/School/school_32.yap \
|
|
|
|
$(CLPBN_EXDIR)/School/school_64.yap \
|
2008-03-27 00:41:33 +00:00
|
|
|
$(CLPBN_EXDIR)/School/tables.yap
|
|
|
|
|
|
|
|
CLPBN_EXAMPLES= \
|
|
|
|
$(CLPBN_EXDIR)/cg.yap \
|
2007-07-07 02:52:57 +01:00
|
|
|
$(CLPBN_EXDIR)/sprinkler.yap
|
2004-07-23 20:10:11 +01:00
|
|
|
|
|
|
|
|
|
|
|
install: $(CLBN_TOP) $(CLBN_PROGRAMS) $(CLPBN_PROGRAMS)
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/clpbn
|
2008-02-12 17:03:59 +00:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/clpbn/learning
|
2006-01-17 14:10:42 +00:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/clpbn/examples/School
|
2004-07-23 20:10:11 +01: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
|
2008-02-12 17:03:59 +00:00
|
|
|
for h in $(CLPBN_LEARNING_PROGRAMS); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR)/clpbn/learning; done
|
2008-03-27 00:41:33 +00:00
|
|
|
for h in $(CLPBN_EXAMPLES); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR)/clpbn/examples; done
|
|
|
|
for h in $(CLPBN_SCHOOL_EXAMPLES); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR)/clpbn/examples/School; done
|
2004-07-23 20:10:11 +01:00
|
|
|
|