From eef3c3e516c1b89f4a30d068a672dd00dd59f7b5 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 6 Jun 2021 10:11:14 -0300 Subject: README.md: Add explicit "Links" and "Releases" sections Instead of generating the "Links" and "Releases" sections on the fly and adding them to the end of the README.md before processing it with aux/workflow/README.sh, embed those sections directly and use aux/workflow/assert-readme.sh to make sure the metadata is there. Before we had: 1. generate "Links" and "Releases" on the fly inside aux/workflow/README.sh; 2. add those sections to the end of the README.md; 3. use the custom pandoc build command inside the aux/workflow/README.sh file. Now we have: 1. embed "Links" and "Releases" in the README.md directly; 2. use aux/workflow/assert-readme.sh to validate the correct metadata; 3. use the vanilla aux/workflow/commonmark.sh to generate the HTML. --- Makefile | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6abcc41..1b95d76 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,15 @@ .POSIX: -CC = c99 -CFLAGS = -std=c99 -Wall -Wextra -Wpedantic -fPIC -g -O3 -LDFLAGS = -Wl,-rpath,$$LIBRARY_PATH -LDLIBS = -PREFIX = /usr/local -MANPREFIX = $(PREFIX)/share/man -VERSION = 0.2.1 -DATE = 2021-02-23 -DEFS = -DVERSION='"$(VERSION)"' -DDATE='"$(DATE)"' -NAME = remembering +CC = c99 +CFLAGS = -std=c99 -Wall -Wextra -Wpedantic -fPIC -g -O3 +LDFLAGS = -Wl,-rpath,$$LIBRARY_PATH +LDLIBS = +PREFIX = /usr/local +MANPREFIX = $(PREFIX)/share/man +VERSION = 0.2.1 +DATE = 2021-02-23 +DEFS = -DVERSION='"$(VERSION)"' -DDATE='"$(DATE)"' +NAME = remembering +MAILING_LIST = public-inbox sources = src/remembering.c @@ -47,6 +48,7 @@ dev-check: check fallible-tests sh aux/assert-shellcheck.sh sh aux/workflow/assert-todos.sh sh aux/workflow/assert-changelog.sh $(NAME) + sh aux/workflow/assert-readme.sh $(NAME) $(MAILING_LIST) clean: rm -rf public/ tests/test-profiles/ remembering remembering-sh remembering-c run-tests fallible* vgcore* remembering-test.* @@ -71,7 +73,7 @@ dist: sh aux/workflow/dist.sh $(DATE) $(VERSION) $(NAME) public: README.md TODOs.md CHANGELOG.md $(manpages) - sh aux/workflow/public.sh Remembering $(NAME) public-inbox + sh aux/workflow/public.sh Remembering $(NAME) $(MAILING_LIST) for m in $(manpages); do groff -m man -Thtml $$m > public/`basename $$m`.html; done .PHONY: all clean check dev-check dist install uninstall -- cgit v1.2.3