aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Makefile
diff options
context:
space:
mode:
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