diff options
author | Gustav Eek <gustav.eek@fripost.org> | 2024-05-18 22:54:23 +0200 |
---|---|---|
committer | Gustav Eek <gustav.eek@fripost.org> | 2024-05-20 09:50:46 +0200 |
commit | 4a642cbf9a70c36f489f1ea4e5d3e0330092704e (patch) | |
tree | ee2e1ae88a8d613abc29b7f02e6a58ef4bc9724f /lib | |
parent | f43068ca50cb21c582d680f7856ead034f9abb1a (diff) |
System. Bugfix and Complete library Makefile
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/Makefile b/lib/Makefile index bb8b55f..535809f 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -6,15 +6,17 @@ 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 # Targets .PHONY: all -ALL = \ +ALL ?= \ $(addsuffix .pdf, $(SLIDES)) \ $(addsuffix .pdf, $(POLICY)) \ $(addsuffix .pdf, $(MINUTES)) \ + $(addsuffix .pdf, $(REPORTS)) \ all: $(ALL) @@ -29,12 +31,18 @@ $(addsuffix .pdf, $(MINUTES)): %.pdf: %.md $$(test -f $*.yml && echo --metadata-file=$*.yml) \ -o $@ $*.md -$(addsuffix .pdf, $(POLICY)): %.pdf: %.yml %.md +$(addsuffix .pdf, $(POLICY)): %.pdf: %.md pandoc -f markdown -t latex \ --template=fripost-by-laws \ $$(test -f $*.yml && echo --metadata-file=$*.yml) \ -o $@ $*.md +$(addsuffix .pdf, $(REPORTS)): %.pdf: %.md + pandoc -f markdown -t latex \ + --template=fripost-report \ + $$(test -f $*.yml && echo --metadata-file=$*.yml) \ + -o $@ $*.md + # Archive .PHONY: archive @@ -42,7 +50,7 @@ $(addsuffix .pdf, $(POLICY)): %.pdf: %.yml %.md ARCHIVE ?= archive ROOT ?= $(shell git rev-parse --show-toplevel) SUFFIX ?= -$(subst /,,$(dir $(subst $(ROOT),,$(PWD)))) -PDF = $(basename $(wildcard *.pdf)) +PDF ?= $(basename $(wildcard *.pdf)) print: @echo ARCHIVE = $(ARCHIVE) |