allow installing examples by defult.

This commit is contained in:
Vítor Santos Costa 2012-07-07 09:43:07 -05:00
parent d9decfe003
commit 1e1d49e112
13 changed files with 14753 additions and 4150 deletions

View File

@ -774,9 +774,13 @@ install_unix: startup.yss libYap.a
@ENABLE_GECODE@ @INSTALL_DLLS@ (cd library/gecode; $(MAKE) install)
@ENABLE_CLIB@ @INSTALL_DLLS@ (cd packages/clib; $(MAKE) install)
@ENABLE_HTTP@ @INSTALL_DLLS@ (cd packages/http; $(MAKE) install)
@ENABLE_HTTP@ @INSTALL_DLLS@ (cd packages/http; $(MAKE) install-examples)
@ENABLE_PLDOC@ @INSTALL_DLLS@ (cd packages/pldoc; $(MAKE) install)
@ENABLE_PLDOC@ @INSTALL_DLLS@ (cd packages/pldoc; $(MAKE) install-examples)
@ENABLE_PLUNIT@ @INSTALL_DLLS@ (cd packages/plunit; $(MAKE) install)
@ENABLE_PLUNIT@ @INSTALL_DLLS@ (cd packages/plunit; $(MAKE) install-examples)
@ENABLE_R@ @INSTALL_DLLS@ (cd packages/R; $(MAKE) install)
@ENABLE_R@ @INSTALL_DLLS@ (cd packages/R; $(MAKE) install-examples)
@ENABLE_RDF@ @INSTALL_DLLS@ (cd packages/RDF; $(MAKE) install)
@ENABLE_SEMWEB@ @INSTALL_DLLS@ (cd packages/semweb; $(MAKE) install)
@ENABLE_SGML@ @INSTALL_DLLS@ (cd packages/sgml; $(MAKE) install)
@ -837,9 +841,13 @@ install_win32: startup.yss @ENABLE_WINCONSOLE@ yap-win@EXEC_SUFFIX@
(cd library/tries; $(MAKE) install)
@ENABLE_CLIB@ (cd packages/clib; $(MAKE) install)
@ENABLE_PLDOC@ (cd packages/pldoc; $(MAKE) install)
@ENABLE_PLDOC@ (cd packages/pldoc; $(MAKE) install-examples)
@ENABLE_PLUNIT@ (cd packages/plunit; $(MAKE) install)
@ENABLE_PLUNIT@ (cd packages/plunit; $(MAKE) install-examples)
@ENABLE_HTTP@ (cd packages/http; $(MAKE) install)
@ENABLE_HTTP@ (cd packages/http; $(MAKE) install-examples)
@ENABLE_R@ (cd packages/R; $(MAKE) install)
@ENABLE_R@ (cd packages/R; $(MAKE) install-examples)
@ENABLE_RDF@ (cd packages/RDF; $(MAKE) install)
@ENABLE_SEMWEB@ (cd packages/semweb; $(MAKE) install)
@ENABLE_SGML@ (cd packages/sgml; $(MAKE) install)

18828
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -2330,6 +2330,7 @@ mkdir -p packages/meld
mkdir -p packages/PLStream
mkdir -p packages/PLStream/libtai
mkdir -p packages/pldoc
mkdir -p packages/pldoc/server
mkdir -p packages/plunit
mkdir -p packages/prism
mkdir -p packages/prism/src
@ -2399,6 +2400,7 @@ fi
if test "$ENABLE_PLDOC" = ""; then
AC_CONFIG_FILES([packages/pldoc/Makefile])
AC_CONFIG_FILES([packages/pldoc/server/man_server.pl])
fi
if test "$ENABLE_PLUNIT" = ""; then

View File

@ -19,7 +19,7 @@ SHAREDIR=$(ROOTDIR)/share/Yap
# where YAP should store documentation
#
DOCDIR=$(ROOTDIR)/share/doc/Yap
EXDIR=$(DOCDIR)/examples/CLPBN
EXDIR=$(DOCDIR)/packages/examples/CLPBN
#
#
# You shouldn't need to change what follows.

@ -1 +1 @@
Subproject commit 8fced60cfb7dec6828506bdcd407adbee7bbf20f
Subproject commit a48f0a8a78d48ccb9c51de63d198ac57e6893ba0

@ -1 +1 @@
Subproject commit 118e4bf761362c72cb899ae433b002df7b54f5eb
Subproject commit 0ab035cebace9f20f3892f6bac9044c4cdc07551

@ -1 +1 @@
Subproject commit 282dfe8689e18809ba6d2de5516fc6168ad972d1
Subproject commit 6bb5b5ff20f347bac661e29bd9165fa9b24b546d

@ -1 +1 @@
Subproject commit 1e0c938a95f14b3b471212e97d64ef280740e064
Subproject commit 65e5f7a35004dcf24f7deae77178c30310a2156a

@ -1 +1 @@
Subproject commit 94240057c16488d503a8f69ac4c986fcf657043f
Subproject commit e99815e7c5f378154f2470a02ea83bb091c5e421

@ -1 +1 @@
Subproject commit 2b4aa4f93dfd0d63ad7d4c91493b9fd92fada7e3
Subproject commit 1e8f46b268a2bcebe9ba4581ef25858edd709ccb

View File

@ -24,6 +24,8 @@ INSTALL_PROGRAM=@INSTALL_PROGRAM@
srcdir=@srcdir@
YAP_EXTRAS=@YAP_EXTRAS@
exdir=@srcdir@/../../exs
# -*- Makefile -*-
##----------------------------------------------------------------------
@ -69,11 +71,42 @@ PL_UP_ALL = $(PL_CORE) $(PL_UP) $(PL_TRANS) $(PL_BP) $(srcdir)/prism.yap
PL_MP_ALL = $(PL_MP)
PL_BAT_ALL = $(PL_BAT)
EXS = $(exdir)/README \
$(exdir)/alarm.psm \
$(exdir)/alarm.psm.out \
$(exdir)/bloodABO.psm \
$(exdir)/bloodAaBb.psm \
$(exdir)/bloodtype.dat \
$(exdir)/dcoin.psm \
$(exdir)/direction.psm \
$(exdir)/hmm.psm \
$(exdir)/jtree \
$(exdir)/noisy_or \
$(exdir)/pdcg.psm \
$(exdir)/pdcg_c.psm \
$(exdir)/phmm.dat \
$(exdir)/phmm.psm \
$(exdir)/plc.dat \
$(exdir)/plc.psm \
$(exdir)/plc.psm.out \
$(exdir)/sbn.psm \
$(exdir)/votes.psm
EXS_JTREE = $(exdir)/jtree/README \
$(exdir)/jtree/asia.psm \
$(exdir)/jtree/jasia.psm \
$(exdir)/jtree/jasia_a.psm
EXS_NOISY_OR = $(exdir)/noisy_or/README \
$(exdir)/noisy_or/alarm_nor_basic.psm \
$(exdir)/noisy_or/alarm_nor_generic.psm \
$(exdir)/noisy_or/noisy_or.psm
##----------------------------------------------------------------------
all: $(TARGETS)
install: $(TARGETS)
install: $(TARGETS) install-examples
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/prism
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/prism/bp
@ -92,6 +125,7 @@ install: $(TARGETS)
clean:
rm -f prism.pl mpprism.pl batch.pl
prism.pl: $(PL_UP_ALL)
cat $^ > $@
@ -106,3 +140,10 @@ batch.pl: $(PL_BAT_ALL)
.PHONY: all install clean
install-examples:
mkdir -p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/prism
mkdir -p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/prism/jtree
mkdir -p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/prism/noisy_or
for p in $(EXS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/prism; done
for p in $(EXS_JTREE); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/prism/jtree; done
for p in $(EXS_NOISY_OR); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/prism/noisy_or; done

View File

@ -36,8 +36,8 @@ EXAMPLE_PROGRAMS= \
install: $(PROGRAMS)
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/minisat_examples
mkdir -p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/minisat
for p in $(PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap; done
for p in $(EXAMPLE_PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap/minisat_examples; done
for p in $(EXAMPLE_PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/minisat; done
clean:

View File

@ -64,8 +64,8 @@ all:
install: $(PROGRAMS) $(EXAMPLES)
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/xml
mkdir -p $(DESTDIR)$(SHAREDIR)/doc/Yap/examples/xml
mkdir -p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/xml
$(INSTALL_DATA) $(srcdir)/xml.pl $(DESTDIR)$(SHAREDIR)/Yap
for p in $(XML_PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap/xml; done
for p in $(XML_EXAMPLES); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/doc/Yap/examples/xml; done
for p in $(XML_EXAMPLES); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/xml; done