Added 2016/Makefile
authorrsiddharth <rsd@gnu.org>
Wed, 10 Feb 2016 15:01:58 +0000 (10:01 -0500)
committerrsiddharth <rsd@gnu.org>
Wed, 10 Feb 2016 15:03:58 +0000 (10:03 -0500)
$ 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 [new file with mode: 0644]

diff --git a/2016/Makefile b/2016/Makefile
new file mode 100644 (file)
index 0000000..a2c363a
--- /dev/null
@@ -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
+#   <http://www.gnu.org/licenses/>.
+
+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