Unverified Commit c5bb5bd6 authored by Caleb Maclennan's avatar Caleb Maclennan
Browse files

Add copy of worklog to stats builds

parent d99e395b
......@@ -71,13 +71,13 @@ $(CCMTOOLKITDIR)/language-%.yml:
curl -s -L https://raw.githubusercontent.com/umpirsky/language-list/master/data/$*/language.yaml -o $@
.PHONY: stats
stats: reports/progress.pdf
stats: reports/status.pdf reports/worklog.pdf
reports/progress.md: $(shell git ls-files -- '*.md') $(CCMTOOLKITDIR)/languages.yml force
reports/status.md: $(shell git ls-files -- '*.md') $(CCMTOOLKITDIR)/languages.yml $$(newcommits)
mkdir -p $(dir $@)
export PS4=; exec > $@ # black magic
echo ---
echo title: Stats for $(call versioninfo,$(PROJECT))
echo title: Status for $(call versioninfo,$(PROJECT))
echo date: $(shell LANG=$(LANGUAGE) date)
echo ---
for lang in $(TRANSLATIONS); do
......@@ -90,13 +90,18 @@ reports/progress.md: $(shell git ls-files -- '*.md') $(CCMTOOLKITDIR)/languages.
reports/%.pdf: reports/%.md
mkdir -p $(dir $@)
--metadata lang=$(call lang4,$(LANGUAGE)) \
-t latex \
--pdf-engine=xelatex \
-V "mainfont:Libertinus Serif" \
-V "geometry:landscape" \
$< -o $@
reports/worklog.md: repository-worklog.md
cp $< $@
# Mostly this makefile will be used for exporting content to consumer formats,
# but for the English version importing from the legacy formats and munging
# the content around into a canonical format is the battle
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment