# # 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 CLPBN_PROGRAMS= \ $(srcdir)/clpbn/aggregates.yap \ $(srcdir)/clpbn/bnt.yap \ $(srcdir)/clpbn/discrete_utils.yap \ $(srcdir)/clpbn/evidence.yap \ $(srcdir)/clpbn/gibbs.yap \ $(srcdir)/clpbn/graphs.yap \ $(srcdir)/clpbn/graphviz.yap \ $(srcdir)/clpbn/topsort.yap \ $(srcdir)/clpbn/utils.yap \ $(srcdir)/clpbn/vel.yap \ $(srcdir)/clpbn/viterbi.yap \ $(srcdir)/clpbn/xbif.yap CLPBN_EXAMPLES= install: $(CLBN_TOP) $(CLBN_PROGRAMS) $(CLPBN_PROGRAMS) mkdir -p $(DESTDIR)$(SHAREDIR)/clpbn mkdir -p $(DESTDIR)$(SHAREDIR)/clpbn/examples 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_EXAMPLES); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR)/clpbn/examples; done