Build report

Start time:
2019-07-03 01:30:01 (CEST)
End time:
2019-07-03 01:33:18 (CEST)
Duration:
3 minutes 17 seconds
Termination Status:
Success
Schedule full rebuild

Previous builds

latest
2019-07-03 01:33:18 (CEST) -
2019-07-02 01:33:21 (CEST) - 3 minutes 20 seconds
2019-07-01 01:32:35 (CEST) - 2 minutes 34 seconds
2019-06-30 01:32:34 (CEST) - 2 minutes 33 seconds
2019-06-29 01:33:02 (CEST) - 3 minutes 1 second
2019-06-28 01:33:16 (CEST) - 3 minutes 15 seconds
2019-06-27 01:33:13 (CEST) - 3 minutes 12 seconds
2019-06-26 01:33:07 (CEST) - 3 minutes 6 seconds
2019-06-25 01:33:13 (CEST) - 3 minutes 11 seconds
2019-06-24 01:32:32 (CEST) - 2 minutes 31 seconds

GIT changes

Phase 1

[01:30:01] Starting phase 1
[01:30:31] * Updating XSL stylesheets
[01:30:33] * Preparing subdirectory about/printable/archive
[01:30:33] * Preparing subdirectory events
[01:30:33] * Preparing subdirectory news
[01:30:34] * Generating tag maps
[01:31:41] * Updating tag lists
[01:32:01] * Updating XML lists
[01:32:02] cat: tags/.tagged-education.xmllist: No such file or directory
[01:32:02] cat: tags/.tagged-education.xmllist: No such file or directory
[01:32:02] cat: tags/.tagged-education.xmllist: No such file or directory
[01:32:02] cat: tags/.tagged-education.xmllist: No such file or directory
[01:32:02] cat: tags/.tagged-education.xmllist: No such file or directory
[01:32:13] cat: tags/.tagged-gb.xmllist: No such file or directory
[01:32:13] cat: tags/.tagged-gb.xmllist: No such file or directory
[01:32:13] cat: tags/.tagged-gb.xmllist: No such file or directory
[01:32:13] cat: tags/.tagged-gb.xmllist: No such file or directory
[01:32:13] cat: tags/.tagged-gb.xmllist: No such file or directory
[01:32:13] * Checking contents of XML lists
[01:32:14] *   Touching donate/.thankgnus.xmllist
[01:32:20] Finishing phase 1

Phase 2 Makefile

# -----------------------------------------------------------------------------
# Makefile for FSFE website build, phase 2
# -----------------------------------------------------------------------------

.PHONY: all
.DELETE_ON_ERROR:
.SECONDEXPANSION:
PROCESSOR = "/srv/www/test.fsfe.org_git/build/process_file.sh"
PROCFLAGS = --build-env "test.fsfe.org" --source "/srv/www/test.fsfe.org_git" --statusdir "/srv/www/status.fsfe.org/test.fsfe.org" --domain "www.fsfe.org"
INPUTDIR = /srv/www/test.fsfe.org_git
OUTPUTDIR = /srv/www/test.fsfe.org_stage
STATUSDIR = /srv/www/status.fsfe.org/test.fsfe.org
LANGUAGES = ar bg bs ca cs da de el en es et fi fr hr hu it 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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-ar.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.ar.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-bg.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.bg.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-bs.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.bs.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-ca.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.ca.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-cs.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.cs.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-da.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.da.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-de.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.de.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-el.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.el.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-en.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.en.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-es.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.es.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-et.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.et.xml $(INPUTDIR)/fundraising.en.xml
	echo "* Building $*.et.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.et.xhtml" > "$@"
$(filter %.fi.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.fi.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-fi.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.fi.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-fr.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.fr.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-hr.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.hr.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-hu.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.hu.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-it.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.it.xml $(INPUTDIR)/fundraising.en.xml
	echo "* Building $*.it.html"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.it.xhtml" > "$@"
$(filter %.mk.html,$(HTML_DST_FILES)): $(OUTPUTDIR)/%.mk.html: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $$(XSL_DEP) $(INPUTDIR)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-mk.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.mk.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-nb.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.nb.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-nl.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.nl.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-nn.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.nn.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-pl.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.pl.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-pt.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.pt.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-ro.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.ro.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-ru.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.ru.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-sk.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.sk.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-sl.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.sl.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-sq.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.sq.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-sr.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.sr.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-sv.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.sv.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-tr.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.tr.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-uk.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.uk.xml $(INPUTDIR)/fundraising.en.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-zh.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.zh.xml $(INPUTDIR)/fundraising.en.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.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.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.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.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-ar.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.ar.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-bg.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.bg.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-bs.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.bs.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-ca.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.ca.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-cs.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.cs.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-da.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.da.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-de.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.de.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-el.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.el.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-en.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.en.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-es.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.es.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-et.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.et.xml $(INPUTDIR)/fundraising.en.xml
	echo "* Building $*.et.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.et.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.fi.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-fi.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.fi.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-fr.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.fr.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-hr.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.hr.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-hu.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.hu.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-it.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.it.xml $(INPUTDIR)/fundraising.en.xml
	echo "* Building $*.it.rss"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.it.xhtml" "$(INPUTDIR)/$*.rss.xsl" > "$@"
$(OUTPUTDIR)/%.mk.rss: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.rss.xsl $(INPUTDIR)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-mk.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.mk.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-nb.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.nb.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-nl.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.nl.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-nn.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.nn.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-pl.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.pl.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-pt.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.pt.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-ro.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.ro.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-ru.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.ru.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-sk.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.sk.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-sl.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.sl.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-sq.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.sq.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-sr.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.sr.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-sv.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.sv.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-tr.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.tr.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-uk.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.uk.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-zh.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.zh.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-ar.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.ar.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-bg.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.bg.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-bs.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.bs.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-ca.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.ca.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-cs.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.cs.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-da.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.da.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-de.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.de.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-el.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.el.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-en.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.en.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-es.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.es.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-et.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.et.xml $(INPUTDIR)/fundraising.en.xml
	echo "* Building $*.et.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.et.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.fi.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-fi.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.fi.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-fr.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.fr.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-hr.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.hr.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-hu.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.hu.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-it.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.it.xml $(INPUTDIR)/fundraising.en.xml
	echo "* Building $*.it.ics"
	${PROCESSOR} ${PROCFLAGS} process_file "$(INPUTDIR)/$*.it.xhtml" "$(INPUTDIR)/$*.ics.xsl" > "$@"
$(OUTPUTDIR)/%.mk.ics: $(INPUTDIR)/%.*.xhtml $$(XMLLIST_DEP) $(INPUTDIR)/%.ics.xsl $(INPUTDIR)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-mk.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.mk.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-nb.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.nb.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-nl.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.nl.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-nn.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.nn.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-pl.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.pl.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-pt.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.pt.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-ro.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.ro.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-ru.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.ru.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-sk.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.sk.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-sl.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.sl.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-sq.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.sq.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-sr.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.sr.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-sv.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.sv.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-tr.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.tr.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-uk.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.uk.xml $(INPUTDIR)/fundraising.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)/tools/menu-global.xml $(INPUTDIR)/tools/.texts-zh.xml $(INPUTDIR)/tools/texts-en.xml $(INPUTDIR)/.fundraising.zh.xml $(INPUTDIR)/fundraising.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 "$(INPUTDIR)" -type f   -not -path '$(INPUTDIR)/.git/*'   -not -path '$(INPUTDIR)/build/*'   -not -path '$(INPUTDIR)/tools/*'   -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' )

# 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 $*"
	cp "$<" "$@"

# -----------------------------------------------------------------------------
# Copy .xhtml files to "source" directory in target directory tree
# -----------------------------------------------------------------------------

SOURCE_DST_FILES := $(sort $(patsubst $(INPUTDIR)/%,$(OUTPUTDIR)/source/%,$(HTML_SRC_FILES)))

all: $(SOURCE_DST_FILES)
$(SOURCE_DST_FILES): $(OUTPUTDIR)/source/%: $(INPUTDIR)/%
	echo "* Copying source $*"
	cp "$<" "$@"

# -----------------------------------------------------------------------------
# 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 \
	  | sort \
	  | diff - "$(STATUSDIR)/manifest.sorted" \
	  | sed -rn 's;^< ;;p' \
	  | while read file; do echo "* Deleting $${file}"; rm "$${file}"; done

# -----------------------------------------------------------------------------

Phase 2

[01:32:23] Starting phase 2
[01:32:40] * Building donate/thankgnus.ar.html
[01:32:40] * Building donate/thankgnus.bg.html
[01:32:41] * Building donate/thankgnus.bs.html
[01:32:41] * Building donate/thankgnus.ca.html
[01:32:41] * Building donate/thankgnus.cs.html
[01:32:41] * Building donate/thankgnus.da.html
[01:32:41] * Building donate/thankgnus.de.html
[01:32:41] * Building donate/thankgnus.el.html
[01:32:42] * Building donate/thankgnus.en.html
[01:32:42] * Building donate/thankgnus.es.html
[01:32:42] * Building donate/thankgnus.et.html
[01:32:42] * Building donate/thankgnus.fi.html
[01:32:42] * Building donate/thankgnus.fr.html
[01:32:42] * Building donate/thankgnus.hr.html
[01:32:42] * Building donate/thankgnus.hu.html
[01:32:42] * Building donate/thankgnus.it.html
[01:32:43] * Building donate/thankgnus.mk.html
[01:32:43] * Building donate/thankgnus.nb.html
[01:32:43] * Building donate/thankgnus.nl.html
[01:32:43] * Building donate/thankgnus.nn.html
[01:32:43] * Building donate/thankgnus.pl.html
[01:32:43] * Building donate/thankgnus.pt.html
[01:32:43] * Building donate/thankgnus.ro.html
[01:32:43] * Building donate/thankgnus.ru.html
[01:32:44] * Building donate/thankgnus.sk.html
[01:32:44] * Building donate/thankgnus.sl.html
[01:32:44] * Building donate/thankgnus.sq.html
[01:32:44] * Building donate/thankgnus.sr.html
[01:32:44] * Building donate/thankgnus.sv.html
[01:32:44] * Building donate/thankgnus.tr.html
[01:32:44] * Building donate/thankgnus.uk.html
[01:32:45] * Building donate/thankgnus.zh.html
[01:33:15] Finishing phase 2

Target update

[01:33:15] sending incremental file list
[01:33:16] donate/thankgnus.ar.html
[01:33:16] donate/thankgnus.bg.html
[01:33:16] donate/thankgnus.bs.html
[01:33:16] donate/thankgnus.ca.html
[01:33:16] donate/thankgnus.cs.html
[01:33:16] donate/thankgnus.da.html
[01:33:16] donate/thankgnus.de.html
[01:33:16] donate/thankgnus.el.html
[01:33:16] donate/thankgnus.en.html
[01:33:16] donate/thankgnus.es.html
[01:33:16] donate/thankgnus.et.html
[01:33:16] donate/thankgnus.fi.html
[01:33:16] donate/thankgnus.fr.html
[01:33:16] donate/thankgnus.hr.html
[01:33:16] donate/thankgnus.hu.html
[01:33:16] donate/thankgnus.it.html
[01:33:16] donate/thankgnus.mk.html
[01:33:16] donate/thankgnus.nb.html
[01:33:16] donate/thankgnus.nl.html
[01:33:16] donate/thankgnus.nn.html
[01:33:16] donate/thankgnus.pl.html
[01:33:16] donate/thankgnus.pt.html
[01:33:16] donate/thankgnus.ro.html
[01:33:16] donate/thankgnus.ru.html
[01:33:16] donate/thankgnus.sk.html
[01:33:16] donate/thankgnus.sl.html
[01:33:16] donate/thankgnus.sq.html
[01:33:16] donate/thankgnus.sr.html
[01:33:16] donate/thankgnus.sv.html
[01:33:16] donate/thankgnus.tr.html
[01:33:16] donate/thankgnus.uk.html
[01:33:16] donate/thankgnus.zh.html
[01:33:18] 
[01:33:18] sent 5,110,756 bytes  received 7,602 bytes  1,462,388.00 bytes/sec
[01:33:18] total size is 1,418,328,649  speedup is 277.11

Errors

File Manifest

view