aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-09-01 10:21:41 -0300
committerEuAndreh <eu@euandre.org>2021-09-01 10:21:41 -0300
commit31a2923c93422c8d3e7e413b8e90d3a7873518b9 (patch)
tree4cd576ee91395493475488bb0e164abb5542a596 /Makefile
parentMakefile: Add repocheck.sh to "dev-check" target, separate it from the canoni... (diff)
downloadremembering-31a2923c93422c8d3e7e413b8e90d3a7873518b9.tar.gz
remembering-31a2923c93422c8d3e7e413b8e90d3a7873518b9.tar.xz
Makefile: Refactor personal workflow targets to include new translations flow
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 21 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 81e5b64..3d25fa2 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@ DATE = 2021-02-23
NAME = remembering
MAILING_LIST = public-inbox
TRANSLATIONS = pt fr eo
+CONTRIBLANGS =
.SUFFIXES: .in
@@ -71,14 +72,27 @@ dev-check: check public
sh aux/workflow/repocheck.sh
dist:
- sh aux/workflow/dist.sh -d '$(DATE)' -V '$(VERSION)' -n '$(NAME)' -m '$(MAILING_LIST)'
+ sh aux/workflow/dist.sh -d '$(DATE)' -V '$(VERSION)' \
+ -n '$(NAME)' -m '$(MAILING_LIST)'
-l10n-gen:
- sh aux/workflow/l10n.sh -l '$(TRANSLATIONS)' $(manpages.en.in)
+README.en.md: README.md
+ ln -fs $? $@
-public: l10n-gen all README.md TODOs.md CHANGELOG.md
- sh aux/workflow/public.sh -n '$(NAME)' -m '$(MAILING_LIST)' -o public
- sh aux/workflow/manpages.sh -Ho public $(manpages)
+CHANGELOG.en.md: CHANGELOG.md
+ ln -fs $? $@
+
+l10n-gen: README.en.md CHANGELOG.en.md $(manpages.en.in)
+ sh aux/workflow/l10n.sh -l '$(TRANSLATIONS)' -L '$(CONTRIBLANGS)' $?
+
+public/makefile.svg: Makefile
+ mkdir -p '$(@D)'
+ makefile2graph check | dot -Tsvg > $@
+
+public: l10n-gen TODOs.md $(manpages) public/makefile.svg
+ sh aux/workflow/public.sh -l '$(TRANSLATIONS) $(CONTRIBLANGS) en' \
+ -N '$(NAME_UC)' -n '$(NAME)' -m '$(MAILING_LIST)' -o public
+ sh doc/manpages.sh -Ho public $(manpages)
spellcheck: public
- aux/workflow/assert-spelling.sh -l '$(TRANSLATIONS) en' $$(find public -type f -name '*.html')
+ sh aux/workflow/assert-spelling.sh -l '$(TRANSLATIONS) en' \
+ $$(find public -type f -name '*.html')