53 lines
1.1 KiB
Makefile
53 lines
1.1 KiB
Makefile
|
#
|
||
|
# 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@
|
||
|
|
||
|
MELD_PROGRAMS= \
|
||
|
$(srcdir)/meldtd.yap \
|
||
|
$(srcdir)/meldc.yap \
|
||
|
$(srcdir)/meldi.yap \
|
||
|
$(srcdir)/meldp.yap
|
||
|
|
||
|
MELD_EXAMPLES= \
|
||
|
$(srcdir)/maxtemp.meld \
|
||
|
$(srcdir)/graph0.meld \
|
||
|
$(srcdir)/graph1.meld \
|
||
|
$(srcdir)/graph2.meld \
|
||
|
$(srcdir)/graph3.meld
|
||
|
|
||
|
PROGRAMS= \
|
||
|
$(srcdir)/meld.yap \
|
||
|
$(MELD_PROGRAMS)
|
||
|
|
||
|
all:
|
||
|
|
||
|
install: $(PROGRAMS) $(EXAMPLES)
|
||
|
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
|
||
|
for p in $(MELD_EXAMPLES); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap/meld; done
|
||
|
|