aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Makefile
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2024-07-14 09:56:48 +0200
committerGustav Eek <gustav.eek@fripost.org>2024-07-15 11:34:45 +0200
commit6ca5b89bb9ca44fde227a67ec5de403a660149fc (patch)
treec6fce06f8197e0b98770d967b9406ce1360e4250 /lib/Makefile
parent7c7ea5ae027c0f0b353aef54749b34957cf05c59 (diff)
System. Create a minute outline script and add exerption
The *outline-minutes* script generates a minute outline from an agenda. This commit contains the script, a Make target and minute template files (markdown and yaml). Also add a minute excrption from encrypted markdown to Makefile
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 2c53bed..3a4e046 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -7,6 +7,7 @@ SLIDES ?= # will be compiled with beamer
MINUTES ?= # will be compiled with *minutes* template
POLICY ?= # will be compiled with *by-laws* template
REPORTS ?= # will be compiled with *report* template
+EXCERPTS ?= # will be compiled with *minutes* template from encrypted source
# Repository root
@@ -21,6 +22,8 @@ ALL ?= \
$(addsuffix .pdf, $(POLICY)) \
$(addsuffix .pdf, $(MINUTES)) \
$(addsuffix .pdf, $(REPORTS)) \
+ $(addsuffix .pdf, $(EXCERPTS)) \
+
all: $(ALL)
@@ -47,6 +50,25 @@ $(addsuffix .pdf, $(REPORTS)): %.pdf: %.md
$$(test -f $*.yml && echo --metadata-file=$*.yml) \
-o $@ $*.md
+# Compile encrypted minute excerpt
+
+$(addsuffix .pdf, $(EXCERPTS)): %.pdf: %.md.gpg
+ gpg -d < $< | \
+ pandoc -f markdown -t latex \
+ --template=fripost-minutes \
+ -o $@
+
+# Refresh markdown if YAML meta data files are touched
+
+.PHONY: refresh
+
+YML := $(basename $(wildcard *.yml))
+
+refresh: $(addsuffix .md, $(YML))
+
+%.md: %.yml
+ touch -r $< $@
+
# Archive
.PHONY: archive
@@ -80,6 +102,11 @@ send:
@echo; echo Now avialable as; \
for f in $(SEND); do echo " - https://fripost.org/minutes/$$f"; done
+# Generate a minute outline from an agenda
+
+outline-minutes:
+ $(ROOT)/lib/outline-minutes
+
# Clean
.PHONY: clean