929ee71b |
1 | # Copyright (C) 2016 Free Software Foundation |
2 | # |
3 | # This program is free software: you can redistribute it and/or |
4 | # modify it under the terms of the GNU General Public License as |
5 | # published by the Free Software Foundation, either version 3 of the |
6 | # License, or (at your option) any later version. |
7 | # |
8 | # This program is distributed in the hope that it will be useful, |
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
11 | # General Public License for more details. |
12 | # |
13 | # You should have received a copy of the GNU General Public License |
14 | # along with this program. If not, see |
15 | # <http://www.gnu.org/licenses/>. |
16 | |
17 | LP_YEAR = 2019 |
18 | |
19 | SPEAKERS_TEMPLATE = assets/templates/lp-speakers.jinja2 |
20 | SPEAKERS_MD = /home/owner/brains/campaigns/libreplanet/2019/program/bios-for-site.mdwn |
21 | SPEAKERS_HTML = program/generated-bios.html |
22 | |
23 | SESSIONS_TEMPLATE = assets/templates/lp-schedule.jinja2 |
24 | SESSIONS_MD = /home/owner/brains/campaigns/libreplanet/2019/program/sessions-for-site.mdwn |
25 | SESSIONS_HTML = program/generated-sessions.html |
26 | |
27 | |
28 | all: |
29 | @echo "Give me something to make." |
e6159b5a |
30 | # for f in $(find -name '*.mdwn' -type f); do python -m markdown $f > ${f%mdwn}html; done |
31 | # todo: edit below command so it translates ALL markdown files. use above command instead until then. |
929ee71b |
32 | wikipages: |
33 | for dir in fun getting-around raffle safe-space-policy speaker-release sponsors volunteer; do \ |
34 | if [ -f $$dir/index.mdwn ] ; then \ |
35 | python -m markdown $$dir/index.mdwn > $$dir/index.html ; \ |
36 | fi \ |
37 | done |
38 | |
39 | speakers: $(SPEAKERS_HTML) |
40 | |
41 | |
42 | sessions: $(SESSIONS_HTML) |
43 | |
44 | |
45 | clean: |
46 | rm -f $(SPEAKERS_HTML) $(SESSIONS_HTML) |
47 | |
48 | |
49 | both: $(SPEAKERS_HTML) $(SESSIONS_HTML) |
50 | |
51 | |
52 | $(SPEAKERS_HTML): $(SPEAKERS_MD) |
53 | @lps_gen -sp $(SPEAKERS_TEMPLATE) $< > $@ |
54 | |
55 | |
56 | $(SESSIONS_HTML): $(SESSIONS_MD) |
57 | @lps_gen -s --ical $(LP_YEAR) $(SESSIONS_TEMPLATE) $< > $@ |
58 | |
59 | |
60 | .PHONY: all speakers sessions both clean |