# Copyright (C) 2016 Free Software Foundation # # This program is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see # . LP_YEAR = 2017 SPEAKERS_TEMPLATE = assets/templates/lp-speakers.jinja2 SPEAKERS_MD = /home/owner/brains/campaigns/libreplanet/2017/program/bios-for-site.mdwn SPEAKERS_HTML = program/generated-bios.html SESSIONS_TEMPLATE = assets/templates/lp-schedule.jinja2 SESSIONS_MD = /home/owner/brains/campaigns/libreplanet/2017/program/sessions-for-site.mdwn SESSIONS_HTML = program/generated-sessions.html all: @echo "Give me something to make." speakers: $(SPEAKERS_HTML) sessions: $(SESSIONS_HTML) clean: rm -f $(SPEAKERS_HTML) $(SESSIONS_HTML) both: $(SPEAKERS_HTML) $(SESSIONS_HTML) $(SPEAKERS_HTML): $(SPEAKERS_MD) @lps_gen -sp $(SPEAKERS_TEMPLATE) $< > $@ $(SESSIONS_HTML): $(SESSIONS_MD) @lps_gen -s --ical $(LP_YEAR) $(SESSIONS_TEMPLATE) $< > $@ .PHONY: all speakers sessions both clean