From dad6d29294d53293db227c1cff500b1a156e4ffb Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Wed, 10 Feb 2016 10:01:58 -0500 Subject: [PATCH] Added 2016/Makefile $ cd 2016 $ make speakers To generate speakers' from MD. $ make sessions To generate sessions from MD. $ make both To generate both from MD. NOTE: replace paths of SPEAKERS_MD and SESSIONS_MD with actual paths. --- 2016/Makefile | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 2016/Makefile diff --git a/2016/Makefile b/2016/Makefile new file mode 100644 index 00000000..a2c363a5 --- /dev/null +++ b/2016/Makefile @@ -0,0 +1,51 @@ +# 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 +# . + +SPEAKERS_TEMPLATE = assets/templates/lp-speakers-2016.jinja2 +SPEAKERS_MD = /path/to/lp-speakers.md # replace this with actual path +SPEAKERS_HTML = program/generated-bios.html + +SESSIONS_TEMPLATE = assets/templates/lp-sch-2016.jinja2 +SESSIONS_MD = /path/to/lp-sch.md # replace this with actual path +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 $(SESSIONS_TEMPLATE) $< > $@ + + +.PHONY: all speakers sessions both clean -- 2.25.1