Re: Multilingualize News Section of Fink Website

Michèle Garoche <[email protected]>
Newsgroups gmane.os.apple.fink.i18n,gmane.os.apple.fink.devel
Message-ID <[email protected]>
BABA Yoshihiko wrote:
> I thought I have bypassed it in xml/Makefile.i18n.common. Does the file look like this?
> 
> 
> # Hey Emacs, this is a -*- makefile -*-
> # $Id: Makefile.i18n.common,v 1.19 2004/11/07 11:52:36 babayoshihiko Exp $
> 
> # common rules for processing XML documents
> # post-processing needed to add PHP processing instructions
> 
> BASE_SOURCE := $(SOURCE)
> BASE_TARGET := $(TARGET)
> 
> ifdef LANGUAGES_AVAILABLE
> ifndef LANGUAGES
> LANGUAGES = $(LANGUAGES_AVAILABLE)
> endif
> endif
> 
> ifdef LANGUAGES
> SOURCE = $(foreach  LANGUAGE, $(LANGUAGES), $(patsubst %.xml,%.$(LANGUAGE).xml, $(BASE_SOURCE)))
> TARGET := $(foreach  LANGUAGE, $(LANGUAGES), $(patsubst %.php,%.$(LANGUAGE).php, $(BASE_TARGET)))
> ifdef STYLESHEET_RDF
> TARGET += $(foreach  LANGUAGE, $(LANGUAGES), $(patsubst %.inc,%.$(LANGUAGE).inc, $(BASE_TARGET)))
> TARGET += $(foreach  LANGUAGE, $(LANGUAGES), $(patsubst %.rdf,%.$(LANGUAGE).rdf, $(BASE_TARGET)))
> endif
> #TARGET += $(foreach  LANGUAGE, $(LANGUAGES),  header.$(LANGUAGE).inc)
> endif
> 
> (...)
Yes, this is exactly the same, but there is later in the file a target 
all, which refers (apparently) to the target in the xml/news/Makefile, 
and the later one has rdf has target.

 From debugging I get:

install: news.inc news.rdf index.en.php news.inc news.rdf index.de.php 
news.inc news.rdf index.es.php news.inc news.rdf index.fr.php news.inc 
news.rdf index.zh.php news.en.inc news.rdf index.php news.de.inc 
news.rdf index.php news.es.inc news.rdf index.php news.fr.inc news.rdf 
index.php news.zh.inc news.rdf index.php news.inc news.en.rdf index.php 
news.inc news.de.rdf index.php news.inc news.es.rdf index.php news.inc 
news.fr.rdf index.php news.inc news.zh.rdf index.php news.inc news.rdf 
index.php install-hook

Maybe I'm missing a file in the tree.

I'm not sure of my analysis, but what is sure is that it does work as is



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.