aboutsummaryrefslogtreecommitdiffstats
path: root/annual/2024/Makefile
blob: 352b861f6da7c60fea6a2616a0f297e18040df91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env make -f
#
# Makefile for Fripost annual meeting

SLIDES = agenda
MINUTES = minutes
POLICY = annual-report operational-plan
TRG = 2024-05-19-annual operational-plan-2024

# General (reusable) compilation and processing commands

ALL = \
 $(addsuffix .pdf, $(SLIDES)) \
 $(addsuffix .pdf, $(POLICY)) \
 $(addsuffix .pdf, $(MINUTES)) \
 $(addsuffix .pdf, $(TRG))

all: $(ALL)

$(addsuffix .pdf, $(SLIDES)): %.pdf: %.md
	pandoc -s -f markdown -t beamer -o $@ < $<

$(addsuffix .pdf, $(MINUTES)): %.pdf: %.yml %.md
	pandoc -f markdown -t latex \
	--template=fripost-minutes --metadata-file=$*.yml -o $@ $*.md

$(addsuffix .pdf, $(POLICY)): %.pdf: %.yml %.md
	pandoc -f markdown -t latex \
	--template=fripost-by-laws --metadata-file=$*.yml -o $@ $*.md

send:
	make -f ../../resources/Makefile-common \
	send SEND_FILES="$(TRG)"

clean:
	rm -f $(ALL)
	rm -f *~

# Specific commands for this year 2023

2024-05-19-annual.pdf: \
  minutes.pdf \
  annual-report.pdf \
  Balans-och-resultat-2023.pdf \
  revision2023.pdf \
  operational-plan.pdf \
  motions/operational-policy.pdf
	pdftk $^ cat output $@

motions/example.pdf:
	make -C $(dir $@)	

operational-plan-2024.pdf: \
  operational-plan.pdf \
  ../../by-laws/operational-policy-2023.pdf
	pdftk $^ cat output $@