# This is a makefile that builds the sme-nob translation parser # =========== Tools: ============= # JV = java MF = -Xmx2048m XSL = net.sf.saxon.Transform XQL = net.sf.saxon.Query SSH = /usr/bin/ssh # =========== Paths & files: ============= # MDDIR = ../src MAKEDICT = makedict BIN = bin SMENOB = cips_mac_smenob.xml.tmp SDSMENOB = sd_smenob.xml DICTTOSD = smenob2stardict.xsl # =========== Other: ============= # DATE = $(shell date +%Y%m%d) #../src/makedict -i xdxf -o stardict --work-dir '.' $1 # This pipeline will be integrated in the big Makefile and triggered via options (format=mac|stardict|...). # This means that the input file (here 'cips_mac_smenob.xml.tmp' and some resource files (map*) will be shared # by the different pipelines. # 1. java -Xmx2048m net.sf.saxon.Transform cips_mac_smenob.xml.tmp smenob2stardict.xsl > gogo_cf.xml # 2. TODO: restructure the xml-format to get rid of the stardict 'duplicate' errors/warnings # 3. ../src/makedict -i xdxf -o stardict --work-dir '.' gogo_cf.xml # 4. TODO: compress the files with dictzip (compiling problem on the mac!) # 5. TODO: move the created and dictzipped data to the stardict resource place # 6. TODO: the intermediate file should be put into the bin-dir and the end files in the deliv-dir snstardict: $(SDSMENOB) $(SDSMENOB): $(SMENOB) \ $(DICTTOSD) \ $(MDDIR)/$(MAKEDICT) @echo @echo "*** Preparing the dictionary for the makedict. ***" @echo @$(JV) $(MF) $(XSL) $< $(DICTTOSD) > $@ @echo @echo "*** Transforming the dictionary into the XDXF-format for stardict. ***" @echo $(MDDIR)/$(MAKEDICT) -i xdxf -o stardict --work-dir '.' $@