Contribute and be proud of defending Software Freedom from monopolist control! We are intervening in the Apple vs. EC case: Find out more.

Build report

Start time:
2024-11-15 15:49:01 (UTC)
End time:
2024-11-15 15:50:27 (UTC)
Duration:
1 minute 26 seconds
Termination Status:
Success
Schedule full rebuild
Previous builds
GIT changes: at 2024-11-15 15:49:02 (UTC)
Updating e1ae9311ce..e83306a937
Fast-forward
 fsfe.org/about/groups.en.xhtml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
checked
Phase 1: 1 minute 2 seconds
[15:49:02] Starting phase 1
[15:49:03] *   Spawning 4 processes
[15:49:03] *   Indexing 5422 files
[15:49:18] *   Indexation done in 14 seconds!
[15:49:18] *   Written index to /srv/www/fsfe.org_git/fsfe.org/search/index.js
[15:49:18] * Creating search index
[15:49:18] * Updating XSL stylesheets
[15:49:18] * Preparing subdirectory fsfe.org/news
[15:49:18] * Preparing subdirectory fsfe.org/events
[15:49:18] * Updating default stylesheets
[15:49:19] * Updating local menus
[15:49:20] * Generating tag maps
[15:49:48] * Updating tag lists
[15:49:54] * Updating XML lists
[15:50:00] * Checking contents of XML lists
[15:50:04] Finishing phase 1
Phase 2 Makefile: 0 minutes 1 second
# -----------------------------------------------------------------------------
# Makefile for FSFE website build, phase 2
# -----------------------------------------------------------------------------

.PHONY: all
.DELETE_ON_ERROR:
.SECONDEXPANSION:
PROCESSOR = "/srv/www/fsfe.org_git/build/process_file.sh"
PROCFLAGS = --build-env "fsfe.org" --source "/srv/www/fsfe.org_git"
INPUTDIR = /srv/www/fsfe.org_git
OUTPUTDIR = /srv/www/fsfe.org_stage
STATUSDIR = /srv/www/fsfe.org/status.fsfe.org/fsfe.org/data
LANGUAGES = ar  bg  bs  ca  cs  da  de  el  en  es  et  fa  fi  fr  hr  hu  it  ja  mk  nb  nl  nn  pl  pt  ro  ru  sk  sl  sq  sr  sv  tr  uk  zh

# -----------------------------------------------------------------------------
# Build .html files from .xhtml sources
# -----------------------------------------------------------------------------

# All .xhtml source files
HTML_SRC_FILES := $(shell find "$(INPUTDIR)"   -name '*.??.xhtml'   -not -path '$(INPUTDIR)/.git/*' )

# All basenames of .xhtml source files (without .<lang>.xhtml ending)
# Note: $(sort ...) is used to remove duplicates
HTML_SRC_BASES := $(sort $(basename $(basename $(HTML_SRC_FILES))))

# All directories containing .xhtml source files
HTML_SRC_DIRS := $(sort $(dir $(HTML_SRC_BASES)))

# The same as above, but moved to the output directory
HTML_DST_BASES := $(patsubst $(INPUTDIR)/%,$(OUTPUTDIR)/%,$(HTML_SRC_BASES))

# List of .<lang>.html files to build
HTML_DST_FILES := $(foreach base,$(HTML_DST_BASES),$(foreach lang,$(LANGUAGES),$(base).$(lang).html))

# .xmllist file used to build a html file
XMLLIST_DEP = $(wildcard $(INPUTDIR)/$(dir $*).$(notdir $*).xmllist)

# .xsl file used to build a html file
XSL_DEP = $(firstword $(wildcard $(INPUTDIR)/$*.xsl) $(INPUTDIR)/$(dir $*).default.xsl)

all: $(HTML_DST_FILES)
$(filter %.ar.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.ar.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.ar.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.ar.xml
	echo "* Building $*.ar.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.ar.xhtml" > "$@"
$(filter %.bg.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.bg.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.bg.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.bg.xml
	echo "* Building $*.bg.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.bg.xhtml" > "$@"
$(filter %.bs.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.bs.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.bs.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.bs.xml
	echo "* Building $*.bs.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.bs.xhtml" > "$@"
$(filter %.ca.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.ca.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.ca.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.ca.xml
	echo "* Building $*.ca.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.ca.xhtml" > "$@"
$(filter %.cs.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.cs.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.cs.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.cs.xml
	echo "* Building $*.cs.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.cs.xhtml" > "$@"
$(filter %.da.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.da.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.da.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.da.xml
	echo "* Building $*.da.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.da.xhtml" > "$@"
$(filter %.de.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.de.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.de.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.de.xml
	echo "* Building $*.de.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.de.xhtml" > "$@"
$(filter %.el.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.el.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.el.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.el.xml
	echo "* Building $*.el.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.el.xhtml" > "$@"
$(filter %.en.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.en.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.en.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.en.xml
	echo "* Building $*.en.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.en.xhtml" > "$@"
$(filter %.es.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.es.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.es.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.es.xml
	echo "* Building $*.es.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.es.xhtml" > "$@"
$(filter %.et.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.et.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.et.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.et.xml
	echo "* Building $*.et.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.et.xhtml" > "$@"
$(filter %.fa.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.fa.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.fa.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.fa.xml
	echo "* Building $*.fa.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.fa.xhtml" > "$@"
$(filter %.fi.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.fi.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.fi.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.fi.xml
	echo "* Building $*.fi.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.fi.xhtml" > "$@"
$(filter %.fr.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.fr.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.fr.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.fr.xml
	echo "* Building $*.fr.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.fr.xhtml" > "$@"
$(filter %.hr.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.hr.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.hr.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.hr.xml
	echo "* Building $*.hr.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.hr.xhtml" > "$@"
$(filter %.hu.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.hu.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.hu.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.hu.xml
	echo "* Building $*.hu.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.hu.xhtml" > "$@"
$(filter %.it.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.it.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.it.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.it.xml
	echo "* Building $*.it.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.it.xhtml" > "$@"
$(filter %.ja.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.ja.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.ja.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.ja.xml
	echo "* Building $*.ja.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.ja.xhtml" > "$@"
$(filter %.mk.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.mk.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.mk.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.mk.xml
	echo "* Building $*.mk.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.mk.xhtml" > "$@"
$(filter %.nb.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.nb.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.nb.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.nb.xml
	echo "* Building $*.nb.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.nb.xhtml" > "$@"
$(filter %.nl.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.nl.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.nl.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.nl.xml
	echo "* Building $*.nl.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.nl.xhtml" > "$@"
$(filter %.nn.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.nn.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.nn.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.nn.xml
	echo "* Building $*.nn.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.nn.xhtml" > "$@"
$(filter %.pl.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.pl.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.pl.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.pl.xml
	echo "* Building $*.pl.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.pl.xhtml" > "$@"
$(filter %.pt.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.pt.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.pt.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.pt.xml
	echo "* Building $*.pt.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.pt.xhtml" > "$@"
$(filter %.ro.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.ro.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.ro.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.ro.xml
	echo "* Building $*.ro.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.ro.xhtml" > "$@"
$(filter %.ru.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.ru.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.ru.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.ru.xml
	echo "* Building $*.ru.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.ru.xhtml" > "$@"
$(filter %.sk.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.sk.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.sk.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.sk.xml
	echo "* Building $*.sk.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.sk.xhtml" > "$@"
$(filter %.sl.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.sl.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.sl.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.sl.xml
	echo "* Building $*.sl.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.sl.xhtml" > "$@"
$(filter %.sq.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.sq.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.sq.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.sq.xml
	echo "* Building $*.sq.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.sq.xhtml" > "$@"
$(filter %.sr.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.sr.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.sr.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.sr.xml
	echo "* Building $*.sr.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.sr.xhtml" > "$@"
$(filter %.sv.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.sv.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.sv.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.sv.xml
	echo "* Building $*.sv.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.sv.xhtml" > "$@"
$(filter %.tr.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.tr.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.tr.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.tr.xml
	echo "* Building $*.tr.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.tr.xhtml" > "$@"
$(filter %.uk.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.uk.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.uk.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.uk.xml
	echo "* Building $*.uk.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.uk.xhtml" > "$@"
$(filter %.zh.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.zh.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/global/data/texts/.texts.zh.xml $(INPUTDIR)/global/data/texts/texts.en.xml $(INPUTDIR)/global/data/topbanner/.topbanner.zh.xml
	echo "* Building $*.zh.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.zh.xhtml" > "$@"

# -----------------------------------------------------------------------------
# Create index.* symlinks
# -----------------------------------------------------------------------------

# All .xhtml source files with the same name as their parent directory
INDEX_SRC_FILES := $(wildcard $(foreach directory,$(HTML_SRC_DIRS),$(directory)$(notdir $(directory:/=)).??.xhtml))

# All basenames of .xhtml source files with the same name as their parent
# directory
INDEX_SRC_BASES := $(sort $(basename $(basename $(INDEX_SRC_FILES))))

# All directories containing .xhtml source files with the same name as their
# parent directory (that is, all directories in which index files should be
# created)
INDEX_SRC_DIRS := $(dir $(INDEX_SRC_BASES))

# The same as above, but moved to the output directory
INDEX_DST_DIRS := $(patsubst $(INPUTDIR)/%,$(OUTPUTDIR)/%,$(INDEX_SRC_DIRS))

# List of index.<lang>.html symlinks to create
INDEX_DST_LINKS := $(foreach base,$(INDEX_DST_DIRS),$(foreach lang,$(LANGUAGES),$(base)index.$(lang).html))

all: $(INDEX_DST_LINKS)
$(filter %/index.ar.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.ar.html:
	echo "* Creating symlink $*/index.ar.html"
	ln -sf "$(notdir $*).ar.html" "$@"
$(filter %/index.bg.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.bg.html:
	echo "* Creating symlink $*/index.bg.html"
	ln -sf "$(notdir $*).bg.html" "$@"
$(filter %/index.bs.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.bs.html:
	echo "* Creating symlink $*/index.bs.html"
	ln -sf "$(notdir $*).bs.html" "$@"
$(filter %/index.ca.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.ca.html:
	echo "* Creating symlink $*/index.ca.html"
	ln -sf "$(notdir $*).ca.html" "$@"
$(filter %/index.cs.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.cs.html:
	echo "* Creating symlink $*/index.cs.html"
	ln -sf "$(notdir $*).cs.html" "$@"
$(filter %/index.da.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.da.html:
	echo "* Creating symlink $*/index.da.html"
	ln -sf "$(notdir $*).da.html" "$@"
$(filter %/index.de.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.de.html:
	echo "* Creating symlink $*/index.de.html"
	ln -sf "$(notdir $*).de.html" "$@"
$(filter %/index.el.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.el.html:
	echo "* Creating symlink $*/index.el.html"
	ln -sf "$(notdir $*).el.html" "$@"
$(filter %/index.en.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.en.html:
	echo "* Creating symlink $*/index.en.html"
	ln -sf "$(notdir $*).en.html" "$@"
$(filter %/index.es.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.es.html:
	echo "* Creating symlink $*/index.es.html"
	ln -sf "$(notdir $*).es.html" "$@"
$(filter %/index.et.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.et.html:
	echo "* Creating symlink $*/index.et.html"
	ln -sf "$(notdir $*).et.html" "$@"
$(filter %/index.fa.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.fa.html:
	echo "* Creating symlink $*/index.fa.html"
	ln -sf "$(notdir $*).fa.html" "$@"
$(filter %/index.fi.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.fi.html:
	echo "* Creating symlink $*/index.fi.html"
	ln -sf "$(notdir $*).fi.html" "$@"
$(filter %/index.fr.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.fr.html:
	echo "* Creating symlink $*/index.fr.html"
	ln -sf "$(notdir $*).fr.html" "$@"
$(filter %/index.hr.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.hr.html:
	echo "* Creating symlink $*/index.hr.html"
	ln -sf "$(notdir $*).hr.html" "$@"
$(filter %/index.hu.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.hu.html:
	echo "* Creating symlink $*/index.hu.html"
	ln -sf "$(notdir $*).hu.html" "$@"
$(filter %/index.it.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.it.html:
	echo "* Creating symlink $*/index.it.html"
	ln -sf "$(notdir $*).it.html" "$@"
$(filter %/index.ja.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.ja.html:
	echo "* Creating symlink $*/index.ja.html"
	ln -sf "$(notdir $*).ja.html" "$@"
$(filter %/index.mk.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.mk.html:
	echo "* Creating symlink $*/index.mk.html"
	ln -sf "$(notdir $*).mk.html" "$@"
$(filter %/index.nb.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.nb.html:
	echo "* Creating symlink $*/index.nb.html"
	ln -sf "$(notdir $*).nb.html" "$@"
$(filter %/index.nl.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.nl.html:
	echo "* Creating symlink $*/index.nl.html"
	ln -sf "$(notdir $*).nl.html" "$@"
$(filter %/index.nn.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.nn.html:
	echo "* Creating symlink $*/index.nn.html"
	ln -sf "$(notdir $*).nn.html" "$@"
$(filter %/index.pl.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.pl.html:
	echo "* Creating symlink $*/index.pl.html"
	ln -sf "$(notdir $*).pl.html" "$@"
$(filter %/index.pt.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.pt.html:
	echo "* Creating symlink $*/index.pt.html"
	ln -sf "$(notdir $*).pt.html" "$@"
$(filter %/index.ro.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.ro.html:
	echo "* Creating symlink $*/index.ro.html"
	ln -sf "$(notdir $*).ro.html" "$@"
$(filter %/index.ru.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.ru.html:
	echo "* Creating symlink $*/index.ru.html"
	ln -sf "$(notdir $*).ru.html" "$@"
$(filter %/index.sk.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.sk.html:
	echo "* Creating symlink $*/index.sk.html"
	ln -sf "$(notdir $*).sk.html" "$@"
$(filter %/index.sl.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.sl.html:
	echo "* Creating symlink $*/index.sl.html"
	ln -sf "$(notdir $*).sl.html" "$@"
$(filter %/index.sq.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.sq.html:
	echo "* Creating symlink $*/index.sq.html"
	ln -sf "$(notdir $*).sq.html" "$@"
$(filter %/index.sr.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.sr.html:
	echo "* Creating symlink $*/index.sr.html"
	ln -sf "$(notdir $*).sr.html" "$@"
$(filter %/index.sv.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.sv.html:
	echo "* Creating symlink $*/index.sv.html"
	ln -sf "$(notdir $*).sv.html" "$@"
$(filter %/index.tr.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.tr.html:
	echo "* Creating symlink $*/index.tr.html"
	ln -sf "$(notdir $*).tr.html" "$@"
$(filter %/index.uk.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.uk.html:
	echo "* Creating symlink $*/index.uk.html"
	ln -sf "$(notdir $*).uk.html" "$@"
$(filter %/index.zh.html,$(INDEX_DST_LINKS)): $(OUTPUTDIR)/%/index.zh.html:
	echo "* Creating symlink $*/index.zh.html"
	ln -sf "$(notdir $*).zh.html" "$@"

# -----------------------------------------------------------------------------
# Create symlinks from file.<lang>.html to file.html.<lang>
# -----------------------------------------------------------------------------

# List of .html.<lang> symlinks to create
HTML_DST_LINKS := $(foreach base,$(HTML_DST_BASES) $(addsuffix index,$(INDEX_DST_DIRS)),$(foreach lang,$(LANGUAGES),$(base).html.$(lang)))

all: $(HTML_DST_LINKS)
$(OUTPUTDIR)/%.html.ar:
	echo "* Creating symlink $*.html.ar"
	ln -sf "$(notdir $*).ar.html" "$@"
$(OUTPUTDIR)/%.html.bg:
	echo "* Creating symlink $*.html.bg"
	ln -sf "$(notdir $*).bg.html" "$@"
$(OUTPUTDIR)/%.html.bs:
	echo "* Creating symlink $*.html.bs"
	ln -sf "$(notdir $*).bs.html" "$@"
$(OUTPUTDIR)/%.html.ca:
	echo "* Creating symlink $*.html.ca"
	ln -sf "$(notdir $*).ca.html" "$@"
$(OUTPUTDIR)/%.html.cs:
	echo "* Creating symlink $*.html.cs"
	ln -sf "$(notdir $*).cs.html" "$@"
$(OUTPUTDIR)/%.html.da:
	echo "* Creating symlink $*.html.da"
	ln -sf "$(notdir $*).da.html" "$@"
$(OUTPUTDIR)/%.html.de:
	echo "* Creating symlink $*.html.de"
	ln -sf "$(notdir $*).de.html" "$@"
$(OUTPUTDIR)/%.html.el:
	echo "* Creating symlink $*.html.el"
	ln -sf "$(notdir $*).el.html" "$@"
$(OUTPUTDIR)/%.html.en:
	echo "* Creating symlink $*.html.en"
	ln -sf "$(notdir $*).en.html" "$@"
$(OUTPUTDIR)/%.html.es:
	echo "* Creating symlink $*.html.es"
	ln -sf "$(notdir $*).es.html" "$@"
$(OUTPUTDIR)/%.html.et:
	echo "* Creating symlink $*.html.et"
	ln -sf "$(notdir $*).et.html" "$@"
$(OUTPUTDIR)/%.html.fa:
	echo "* Creating symlink $*.html.fa"
	ln -sf "$(notdir $*).fa.html" "$@"
$(OUTPUTDIR)/%.html.fi:
	echo "* Creating symlink $*.html.fi"
	ln -sf "$(notdir $*).fi.html" "$@"
$(OUTPUTDIR)/%.html.fr:
	echo "* Creating symlink $*.html.fr"
	ln -sf "$(notdir $*).fr.html" "$@"
$(OUTPUTDIR)/%.html.hr:
	echo "* Creating symlink $*.html.hr"
	ln -sf "$(notdir $*).hr.html" "$@"
$(OUTPUTDIR)/%.html.hu:
	echo "* Creating symlink $*.html.hu"
	ln -sf "$(notdir $*).hu.html" "$@"
$(OUTPUTDIR)/%.html.it:
	echo "* Creating symlink $*.html.it"
	ln -sf "$(notdir $*).it.html" "$@"
$(OUTPUTDIR)/%.html.ja:
	echo "* Creating symlink $*.html.ja"
	ln -sf "$(notdir $*).ja.html" "$@"
$(OUTPUTDIR)/%.html.mk:
	echo "* Creating symlink $*.html.mk"
	ln -sf "$(notdir $*).mk.html" "$@"
$(OUTPUTDIR)/%.html.nb:
	echo "* Creating symlink $*.html.nb"
	ln -sf "$(notdir $*).nb.html" "$@"
$(OUTPUTDIR)/%.html.nl:
	echo "* Creating symlink $*.html.nl"
	ln -sf "$(notdir $*).nl.html" "$@"
$(OUTPUTDIR)/%.html.nn:
	echo "* Creating symlink $*.html.nn"
	ln -sf "$(notdir $*).nn.html" "$@"
$(OUTPUTDIR)/%.html.pl:
	echo "* Creating symlink $*.html.pl"
	ln -sf "$(notdir $*).pl.html" "$@"
$(OUTPUTDIR)/%.html.pt:
	echo "* Creating symlink $*.html.pt"
	ln -sf "$(notdir $*).pt.html" "$@"
$(OUTPUTDIR)/%.html.ro:
	echo "* Creating symlink $*.html.ro"
	ln -sf "$(notdir $*).ro.html" "$@"
$(OUTPUTDIR)/%.html.ru:
	echo "* Creating symlink $*.html.ru"
	ln -sf "$(notdir $*).ru.html" "$@"
$(OUTPUTDIR)/%.html.sk:
	echo "* Creating symlink $*.html.sk"
	ln -sf "$(notdir $*).sk.html" "$@"
$(OUTPUTDIR)/%.html.sl:
	echo "* Creating symlink $*.html.sl"
	ln -sf "$(notdir $*).sl.html" "$@"
$(OUTPUTDIR)/%.html.sq:
	echo "* Creating symlink $*.html.sq"
	ln -sf "$(notdir $*).sq.html" "$@"
$(OUTPUTDIR)/%.html.sr:
	echo "* Creating symlink $*.html.sr"
	ln -sf "$(notdir $*).sr.html" "$@"
$(OUTPUTDIR)/%.html.sv:
	echo "* Creating symlink $*.html.sv"
	ln -sf "$(notdir $*).sv.html" "$@"
$(OUTPUTDIR)/%.html.tr:
	echo "* Creating symlink $*.html.tr"
	ln -sf "$(notdir $*).tr.html" "$@"
$(OUTPUTDIR)/%.html.uk:
	echo "* Creating symlink $*.html.uk"
	ln -sf "$(notdir $*).uk.html" "$@"
$(OUTPUTDIR)/%.html.zh:
	echo "* Creating symlink $*.html.zh"
	ln -sf "$(notdir $*).zh.html" "$@"

# -----------------------------------------------------------------------------
# Build .rss files from .xhtml sources
# -----------------------------------------------------------------------------

# All .rss.xsl scripts which can create .rss output
RSS_SRC_SCRIPTS := $(shell find "$(INPUTDIR)"   -name '*.rss.xsl'   -not -path '$(INPUTDIR)/.git/*' )

# All basenames of .xhtml source files from which .rss files should be built
RSS_SRC_BASES := $(sort $(basename $(basename $(RSS_SRC_SCRIPTS))))

# The same as above, but moved to the output directory
RSS_DST_BASES := $(patsubst $(INPUTDIR)/%,$(OUTPUTDIR)/%,$(RSS_SRC_BASES))

# List of .<lang>.rss files to build
RSS_DST_FILES := $(foreach base,$(RSS_DST_BASES),$(foreach lang,$(LANGUAGES),$(base).$(lang).rss))

all: $(RSS_DST_FILES)
$(OUTPUTDIR)/%.ar.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.ar.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.ar.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.ar.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.bg.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.bg.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.bg.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.bg.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.bs.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.bs.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.bs.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.bs.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.ca.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.ca.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.ca.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.ca.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.cs.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.cs.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.cs.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.cs.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.da.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.da.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.da.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.da.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.de.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.de.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.de.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.de.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.el.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.el.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.el.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.el.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.en.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.en.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.en.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.en.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.es.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.es.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.es.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.es.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.et.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.et.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.et.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.et.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.fa.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.fa.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.fa.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.fa.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.fi.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.fi.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.fi.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.fi.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.fr.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.fr.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.fr.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.fr.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.hr.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.hr.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.hr.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.hr.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.hu.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.hu.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.hu.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.hu.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.it.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.it.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.it.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.it.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.ja.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.ja.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.ja.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.ja.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.mk.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.mk.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.mk.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.mk.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.nb.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.nb.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.nb.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.nb.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.nl.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.nl.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.nl.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.nl.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.nn.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.nn.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.nn.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.nn.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.pl.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.pl.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.pl.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.pl.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.pt.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.pt.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.pt.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.pt.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.ro.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.ro.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.ro.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.ro.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.ru.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.ru.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.ru.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.ru.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.sk.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.sk.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.sk.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.sk.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.sl.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.sl.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.sl.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.sl.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.sq.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.sq.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.sq.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.sq.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.sr.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.sr.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.sr.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.sr.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.sv.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.sv.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.sv.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.sv.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.tr.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.tr.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.tr.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.tr.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.uk.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.uk.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.uk.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.uk.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.zh.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/global/data/texts/.texts.zh.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.zh.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.zh.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"

# -----------------------------------------------------------------------------
# Build .ics files from .xhtml sources
# -----------------------------------------------------------------------------

# All .ics.xsl scripts which can create .ics output
ICS_SRC_SCRIPTS := $(shell find "$(INPUTDIR)"   -name '*.ics.xsl'   -not -path '$(INPUTDIR)/.git/*' )

# All basenames of .xhtml source files from which .ics files should be built
ICS_SRC_BASES := $(sort $(basename $(basename $(ICS_SRC_SCRIPTS))))

# The same as above, but moved to the output directory
ICS_DST_BASES := $(patsubst $(INPUTDIR)/%,$(OUTPUTDIR)/%,$(ICS_SRC_BASES))

# List of .<lang>.ics files to build
ICS_DST_FILES := $(foreach base,$(ICS_DST_BASES),$(foreach lang,$(LANGUAGES),$(base).$(lang).ics))

all: $(ICS_DST_FILES)
$(OUTPUTDIR)/%.ar.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.ar.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.ar.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.ar.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.bg.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.bg.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.bg.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.bg.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.bs.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.bs.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.bs.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.bs.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.ca.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.ca.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.ca.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.ca.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.cs.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.cs.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.cs.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.cs.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.da.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.da.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.da.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.da.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.de.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.de.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.de.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.de.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.el.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.el.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.el.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.el.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.en.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.en.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.en.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.en.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.es.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.es.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.es.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.es.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.et.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.et.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.et.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.et.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.fa.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.fa.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.fa.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.fa.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.fi.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.fi.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.fi.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.fi.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.fr.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.fr.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.fr.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.fr.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.hr.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.hr.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.hr.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.hr.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.hu.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.hu.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.hu.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.hu.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.it.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.it.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.it.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.it.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.ja.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.ja.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.ja.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.ja.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.mk.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.mk.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.mk.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.mk.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.nb.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.nb.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.nb.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.nb.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.nl.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.nl.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.nl.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.nl.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.nn.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.nn.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.nn.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.nn.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.pl.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.pl.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.pl.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.pl.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.pt.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.pt.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.pt.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.pt.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.ro.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.ro.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.ro.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.ro.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.ru.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.ru.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.ru.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.ru.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.sk.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.sk.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.sk.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.sk.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.sl.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.sl.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.sl.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.sl.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.sq.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.sq.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.sq.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.sq.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.sr.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.sr.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.sr.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.sr.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.sv.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.sv.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.sv.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.sv.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.tr.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.tr.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.tr.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.tr.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.uk.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.uk.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.uk.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.uk.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.zh.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/global/data/texts/.texts.zh.xml $(INPUTDIR)/global/data/texts/texts.en.xml
	echo "* Building $*.zh.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.zh.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"

# -----------------------------------------------------------------------------
# Copy images, docments etc
# -----------------------------------------------------------------------------

# All files which should just be copied over
COPY_SRC_FILES := $(shell find -L "$(INPUTDIR)" -type f   -regex "$(INPUTDIR)/[a-z\.]+\.[a-z]+/.*"   -not -name '.drone.yml'   -not -name '.gitignore'   -not -name 'README*'   -not -name 'Makefile'   -not -name '*.sources'   -not -name "*.xmllist"   -not -name '*.xhtml'   -not -name '*.xml'   -not -name '*.xsl'   -not -name '*.nix' ) $(INPUTDIR)/fsfe.org/order/data/items.en.xml

# The same as above, but moved to the output directory
COPY_DST_FILES := $(sort $(patsubst $(INPUTDIR)/%,$(OUTPUTDIR)/%,$(COPY_SRC_FILES)))

all: $(COPY_DST_FILES)
$(COPY_DST_FILES): $(OUTPUTDIR)/%: $(INPUTDIR)/%
	echo "* Copying file $*"
	rsync -l "$<" "$@"

# -----------------------------------------------------------------------------
# Clean up excess files in target directory
# -----------------------------------------------------------------------------

ALL_DST := $(HTML_DST_FILES) $(INDEX_DST_LINKS) $(HTML_DST_LINKS) $(RSS_DST_FILES) $(ICS_DST_FILES) $(COPY_DST_FILES) $(SOURCE_DST_FILES)

.PHONY: clean
all: clean
clean:
	# Write all destination filenames into "manifest" file, one per line
	$(file >$(STATUSDIR)/manifest)
	$(foreach filename,$(ALL_DST),$(file >>$(STATUSDIR)/manifest,$(filename)))
	sort "$(STATUSDIR)/manifest" > "$(STATUSDIR)/manifest.sorted"
	find -L "$(OUTPUTDIR)" -type f -path "$(STATUSDIR)" -prune \
	  | sort \
	  | diff - "$(STATUSDIR)/manifest.sorted" \
	  | sed -rn 's;^< ;;p' \
	  | while read file; do echo "* Deleting $${file}"; rm "$${file}"; done

# -----------------------------------------------------------------------------
Phase 2: 0 minutes 14 seconds
[15:50:05] Starting phase 2
[15:50:11] * Building fsfe.org/about/groups.ar.html
[15:50:11] * Building fsfe.org/about/groups.bg.html
[15:50:11] * Building fsfe.org/about/groups.bs.html
[15:50:11] * Building fsfe.org/about/groups.ca.html
[15:50:11] * Building fsfe.org/about/groups.cs.html
[15:50:11] * Building fsfe.org/about/groups.da.html
[15:50:11] * Building fsfe.org/about/groups.de.html
[15:50:11] * Building fsfe.org/about/groups.el.html
[15:50:11] * Building fsfe.org/about/groups.en.html
[15:50:11] * Building fsfe.org/about/groups.es.html
[15:50:11] * Building fsfe.org/about/groups.et.html
[15:50:11] * Building fsfe.org/about/groups.fa.html
[15:50:11] * Building fsfe.org/about/groups.fi.html
[15:50:11] * Building fsfe.org/about/groups.fr.html
[15:50:11] * Building fsfe.org/about/groups.hr.html
[15:50:11] * Building fsfe.org/about/groups.hu.html
[15:50:11] * Building fsfe.org/about/groups.it.html
[15:50:11] * Building fsfe.org/about/groups.ja.html
[15:50:11] * Building fsfe.org/about/groups.mk.html
[15:50:11] * Building fsfe.org/about/groups.nb.html
[15:50:11] * Building fsfe.org/about/groups.nl.html
[15:50:11] * Building fsfe.org/about/groups.nn.html
[15:50:11] * Building fsfe.org/about/groups.pl.html
[15:50:11] * Building fsfe.org/about/groups.pt.html
[15:50:11] * Building fsfe.org/about/groups.ro.html
[15:50:11] * Building fsfe.org/about/groups.ru.html
[15:50:11] * Building fsfe.org/about/groups.sk.html
[15:50:12] * Building fsfe.org/about/groups.sl.html
[15:50:12] * Building fsfe.org/about/groups.sq.html
[15:50:12] * Building fsfe.org/about/groups.sr.html
[15:50:12] * Building fsfe.org/about/groups.sv.html
[15:50:12] * Building fsfe.org/about/groups.tr.html
[15:50:12] * Building fsfe.org/about/groups.uk.html
[15:50:12] * Building fsfe.org/about/groups.zh.html
[15:50:16] * Copying file fsfe.org/search/index.js
[15:50:19] Finishing phase 2
Target update: 119 updated files
[15:50:19] Syncing files to bunsen.fsfeurope.org
[15:50:23] sending incremental file list
[15:50:23] fsfe.org/about/groups.ar.html
[15:50:23] fsfe.org/about/groups.bg.html
[15:50:23] fsfe.org/about/groups.bs.html
[15:50:23] fsfe.org/about/groups.ca.html
[15:50:23] fsfe.org/about/groups.cs.html
[15:50:23] fsfe.org/about/groups.da.html
[15:50:23] fsfe.org/about/groups.de.html
[15:50:23] fsfe.org/about/groups.el.html
[15:50:23] fsfe.org/about/groups.en.html
[15:50:23] fsfe.org/about/groups.es.html
[15:50:23] fsfe.org/about/groups.et.html
[15:50:23] fsfe.org/about/groups.fa.html
[15:50:23] fsfe.org/about/groups.fi.html
[15:50:23] fsfe.org/about/groups.fr.html
[15:50:23] fsfe.org/about/groups.hr.html
[15:50:23] fsfe.org/about/groups.hu.html
[15:50:23] fsfe.org/about/groups.it.html
[15:50:23] fsfe.org/about/groups.ja.html
[15:50:23] fsfe.org/about/groups.mk.html
[15:50:23] fsfe.org/about/groups.nb.html
[15:50:23] fsfe.org/about/groups.nl.html
[15:50:23] fsfe.org/about/groups.nn.html
[15:50:23] fsfe.org/about/groups.pl.html
[15:50:23] fsfe.org/about/groups.pt.html
[15:50:23] fsfe.org/about/groups.ro.html
[15:50:23] fsfe.org/about/groups.ru.html
[15:50:23] fsfe.org/about/groups.sk.html
[15:50:23] fsfe.org/about/groups.sl.html
[15:50:23] fsfe.org/about/groups.sq.html
[15:50:23] fsfe.org/about/groups.sr.html
[15:50:23] fsfe.org/about/groups.sv.html
[15:50:23] fsfe.org/about/groups.tr.html
[15:50:23] fsfe.org/about/groups.uk.html
[15:50:23] fsfe.org/about/groups.zh.html
[15:50:23] fsfe.org/search/
[15:50:23] fsfe.org/search/index.js
[15:50:23] 
[15:50:23] sent 8,223,154 bytes  received 18,343 bytes  1,831,443.78 bytes/sec
[15:50:23] total size is 1,538,231,915  speedup is 186.64
[15:50:23] Syncing files to noddack.fsfeurope.org
[15:50:24] sending incremental file list
[15:50:24] fsfe.org/about/groups.ar.html
[15:50:24] fsfe.org/about/groups.bg.html
[15:50:24] fsfe.org/about/groups.bs.html
[15:50:24] fsfe.org/about/groups.ca.html
[15:50:24] fsfe.org/about/groups.cs.html
[15:50:24] fsfe.org/about/groups.da.html
[15:50:24] fsfe.org/about/groups.de.html
[15:50:24] fsfe.org/about/groups.el.html
[15:50:24] fsfe.org/about/groups.en.html
[15:50:24] fsfe.org/about/groups.es.html
[15:50:24] fsfe.org/about/groups.et.html
[15:50:24] fsfe.org/about/groups.fa.html
[15:50:24] fsfe.org/about/groups.fi.html
[15:50:24] fsfe.org/about/groups.fr.html
[15:50:24] fsfe.org/about/groups.hr.html
[15:50:24] fsfe.org/about/groups.hu.html
[15:50:24] fsfe.org/about/groups.it.html
[15:50:24] fsfe.org/about/groups.ja.html
[15:50:24] fsfe.org/about/groups.mk.html
[15:50:24] fsfe.org/about/groups.nb.html
[15:50:24] fsfe.org/about/groups.nl.html
[15:50:24] fsfe.org/about/groups.nn.html
[15:50:24] fsfe.org/about/groups.pl.html
[15:50:24] fsfe.org/about/groups.pt.html
[15:50:24] fsfe.org/about/groups.ro.html
[15:50:24] fsfe.org/about/groups.ru.html
[15:50:24] fsfe.org/about/groups.sk.html
[15:50:24] fsfe.org/about/groups.sl.html
[15:50:24] fsfe.org/about/groups.sq.html
[15:50:24] fsfe.org/about/groups.sr.html
[15:50:24] fsfe.org/about/groups.sv.html
[15:50:24] fsfe.org/about/groups.tr.html
[15:50:24] fsfe.org/about/groups.uk.html
[15:50:24] fsfe.org/about/groups.zh.html
[15:50:24] fsfe.org/search/
[15:50:24] fsfe.org/search/index.js
[15:50:24] 
[15:50:24] sent 8,223,130 bytes  received 18,343 bytes  5,494,315.33 bytes/sec
[15:50:24] total size is 1,538,231,915  speedup is 186.65
[15:50:24] Syncing files to gahn.fsfeurope.org
[15:50:27] sending incremental file list
[15:50:27] fsfe.org/about/groups.ar.html
[15:50:27] fsfe.org/about/groups.bg.html
[15:50:27] fsfe.org/about/groups.bs.html
[15:50:27] fsfe.org/about/groups.ca.html
[15:50:27] fsfe.org/about/groups.cs.html
[15:50:27] fsfe.org/about/groups.da.html
[15:50:27] fsfe.org/about/groups.de.html
[15:50:27] fsfe.org/about/groups.el.html
[15:50:27] fsfe.org/about/groups.en.html
[15:50:27] fsfe.org/about/groups.es.html
[15:50:27] fsfe.org/about/groups.et.html
[15:50:27] fsfe.org/about/groups.fa.html
[15:50:27] fsfe.org/about/groups.fi.html
[15:50:27] fsfe.org/about/groups.fr.html
[15:50:27] fsfe.org/about/groups.hr.html
[15:50:27] fsfe.org/about/groups.hu.html
[15:50:27] fsfe.org/about/groups.it.html
[15:50:27] fsfe.org/about/groups.ja.html
[15:50:27] fsfe.org/about/groups.mk.html
[15:50:27] fsfe.org/about/groups.nb.html
[15:50:27] fsfe.org/about/groups.nl.html
[15:50:27] fsfe.org/about/groups.nn.html
[15:50:27] fsfe.org/about/groups.pl.html
[15:50:27] fsfe.org/about/groups.pt.html
[15:50:27] fsfe.org/about/groups.ro.html
[15:50:27] fsfe.org/about/groups.ru.html
[15:50:27] fsfe.org/about/groups.sk.html
[15:50:27] fsfe.org/about/groups.sl.html
[15:50:27] fsfe.org/about/groups.sq.html
[15:50:27] fsfe.org/about/groups.sr.html
[15:50:27] fsfe.org/about/groups.sv.html
[15:50:27] fsfe.org/about/groups.tr.html
[15:50:27] fsfe.org/about/groups.uk.html
[15:50:27] fsfe.org/about/groups.zh.html
[15:50:27] fsfe.org/search/
[15:50:27] fsfe.org/search/index.js
[15:50:27] 
[15:50:27] sent 8,223,162 bytes  received 18,351 bytes  2,354,718.00 bytes/sec
[15:50:27] total size is 1,538,231,915  speedup is 186.64
Errors: none
File Manifest: 126500 files