Commit a0a01c3e authored by Gérard Huet's avatar Gérard Huet

Version 3.10 with external Zen library

parent 9b10a52d
......@@ -131,6 +131,7 @@ DIC_HTML=Heritage.html #in 1 page! (used for Goldendict format translation)
# Installation parameters - Customize by ./configure in main dir
# according to the config file in SETUP dir
ZEN=#ZENDIR# Zen computational linguistics Ocaml library should be installed
PLATFORM=#PLATFORM# Computer or Station -- no blank character in such strings
# PLATFORM=Simputer# Amida Simputer handheld device - historical
......@@ -392,10 +393,13 @@ XML_MORPHOLOGY=$(SL_XML_MORPHOLOGY) $(WX_XML_MORPHOLOGY) $(XML_DTD)
###########
# Sanskrit Heritage Platform site construction; release with "make release"
all: ZEN
all:
test -e $(ZEN) && echo "Zen toolkit detected" && exit 0 \
|| echo "You should first install the Zen library at $(ZEN)" && exit 1
cd $(ZEN); make
test -e $(DATA) && echo "Heritage_Resources detected" && exit 0 \
|| echo "You should first install Heritage_Resources at $(DATA)" && exit 1
cd ZEN && $(MAKE) all
cd $(ZEN) && $(MAKE) all
cp -Rp $(HERITAGE) . # local copy of DICO from Resources/DICO
cp -Rp $(MW) . # local copy of MW
# cd ML && $(MAKE) depend # reset dependencies (might be partial subset)
......@@ -420,6 +424,7 @@ echo 'value platform = "$(PLATFORM)"'; \
echo 'and default_transliteration = "$(TRANSLIT)"'; \
echo 'and default_lexicon = "$(LEXICON)"'; \
echo 'and default_display_font = "$(DISPLAY)"'; \
echo 'and zen_install_dir = "$(ZEN)"'; \
echo 'and skt_install_dir = "$(SKTINSTALLDIR)"'; \
echo 'and skt_resources_dir = "$(SKTRESOURCES)"'; \
echo 'and public_skt_dir = "$(SERVERPUBLICDIR)"'; \
......@@ -449,7 +454,7 @@ version:
echo "(* Generated by make version - see main Makefile *)"; \
echo "value version=\"$(VERSION)\" and version_date=\"$(DATE)\";") > ML/version.ml
full: ZEN
full: $(ZEN)
cd ML && $(MAKE) clean && $(MAKE) depend && $(MAKE) all
$(MAKE) all
$(MAKE) supplements
......@@ -629,7 +634,7 @@ software_doc: # needs to have ocamlweb installed
cd ML && $(MAKE) doc
########################
#### Distribution #### Obsolete
#### Distribution #### Obsolete - now distribution through Git
########################
# customise LICENSEs above before distributing
......@@ -655,7 +660,6 @@ distr_engine: # distribution of packages CORE GRAM abd WEB under SOFT_LICENSE
cp -p $(SOFT_LICENSE) DISTR/ML/LICENSE # customised software license
mkdir DISTR/SITE # For Skt Platform portal
cp -p $(WEBSOURCES) DISTR/SITE # Skt site entry page
# cp -p $(ZENSITESOURCE) DISTR/SITE/ZEN # Zen site entry page
cp -p $(SITESOURCE) DISTR/SITE
# cp -p $(GOLDENDICT) DISTR/SITE # enormous - separately distributed
mkdir DISTR/IMAGES # For Web site images
......@@ -675,7 +679,7 @@ distr_automata: # distribution of data derived from Heritage Dictionary
cp -p $(DATAMW) DISTR/$(DATA) # MW alignment
# touch DISTR/automata # for make automata to succeed vacuously
distrib: # distribution of ZEN, and of derived Heritage under HTML & PDF formats
distrib: # distribution of Heritage under HTML & PDF formats
$(MAKE) distr_automata
cp -p SETUP/zen.tar DISTR/SETUP # Zen toolkit distribution included
# DICO is assumed to be customized for the distribution site
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment