2010-11-05 04:19:51 +00:00
|
|
|
#
|
|
|
|
# default base directory for YAP installation
|
|
|
|
#
|
|
|
|
ROOTDIR = @prefix@
|
|
|
|
#
|
|
|
|
# where the binary should be
|
|
|
|
#
|
|
|
|
BINDIR = $(ROOTDIR)/bin
|
|
|
|
#
|
|
|
|
# where YAP should look for binary libraries
|
|
|
|
#
|
|
|
|
LIBDIR=@libdir@/Yap
|
|
|
|
#
|
|
|
|
# where YAP should look for architecture-independent Prolog libraries
|
|
|
|
#
|
|
|
|
SHAREDIR=$(ROOTDIR)/share
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# You shouldn't need to change what follows.
|
|
|
|
#
|
|
|
|
INSTALL=@INSTALL@
|
|
|
|
INSTALL_DATA=@INSTALL_DATA@
|
|
|
|
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
|
|
|
srcdir=@srcdir@
|
|
|
|
YAP_EXTRAS=@YAP_EXTRAS@
|
|
|
|
|
2012-07-07 00:58:35 +01:00
|
|
|
EX_INSTALL_DIR=$(SHAREDIR)/doc/Yap/packages/examples/meld
|
|
|
|
|
2011-05-08 23:10:52 +01:00
|
|
|
EXDIR=$(srcdir)/examples
|
|
|
|
|
2010-11-05 04:19:51 +00:00
|
|
|
MELD_PROGRAMS= \
|
|
|
|
$(srcdir)/meldtd.yap \
|
|
|
|
$(srcdir)/meldc.yap \
|
|
|
|
$(srcdir)/meldi.yap \
|
|
|
|
$(srcdir)/meldp.yap
|
|
|
|
|
|
|
|
MELD_EXAMPLES= \
|
2011-05-08 23:10:52 +01:00
|
|
|
$(EXDIR)/temperature/maxtemp.meld \
|
|
|
|
$(EXDIR)/temperature/graph0.meld \
|
|
|
|
$(EXDIR)/temperature/graph1.meld \
|
|
|
|
$(EXDIR)/temperature/graph2.meld \
|
|
|
|
$(EXDIR)/temperature/graph3.meld \
|
|
|
|
$(EXDIR)/pagerank/pagerank.meld \
|
2010-11-05 04:19:51 +00:00
|
|
|
|
|
|
|
PROGRAMS= \
|
|
|
|
$(srcdir)/meld.yap \
|
|
|
|
$(MELD_PROGRAMS)
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
2014-02-16 15:20:07 +00:00
|
|
|
install: $(PROGRAMS) install-examples
|
2010-11-05 04:19:51 +00:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/meld
|
|
|
|
$(INSTALL_DATA) $(srcdir)/meld.yap $(DESTDIR)$(SHAREDIR)/Yap
|
|
|
|
for p in $(MELD_PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap/meld; done
|
2014-02-13 01:58:48 +00:00
|
|
|
|
|
|
|
install-examples: $(EXAMPLES)
|
2014-02-13 02:09:36 +00:00
|
|
|
mkdir -p $(DESTDIR)$(EX_INSTALL_DIR)
|
2012-07-07 00:58:35 +01:00
|
|
|
for p in $(MELD_EXAMPLES); do $(INSTALL_DATA) $$p $(DESTDIR)$(EX_INSTALL_DIR); done
|
2010-11-05 04:19:51 +00:00
|
|
|
|
2014-02-13 01:58:48 +00:00
|
|
|
clean:
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -r Makefile
|