<newsletter:master> write a make file and a README how to use it

Dominic Hopf git-noreply at xxxxx
Thu Mar 24 22:51:01 UTC 2011


Updating branch refs/heads/master
         to d5ce1971911d6149824687c302758cb346f58c41 (commit)
       from c2efd5e1d3e24da345f2efb22eddbb36c89c2aa1 (commit)

commit d5ce1971911d6149824687c302758cb346f58c41
Author: Dominic Hopf <dmaphy at fedoraproject.org>
Date:   Thu Mar 24 23:26:11 2011 +0100

    write a make file and a README how to use it

 Makefile |   13 +++++++++++++
 README   |   11 +++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9e1d6f6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+all: html pdf latex odt
+
+html:
+	rst2html vol_$(VOL)/newsletter_$(VOL).rst > vol_$(VOL)/newsletter_$(VOL).html
+
+pdf:
+	rst2pdf vol_$(VOL)/newsletter_$(VOL).rst > vol_$(VOL)/newsletter_$(VOL).pdf
+
+latex:
+	rst2latex vol_$(VOL)/newsletter_$(VOL).rst > vol_$(VOL)/newsletter_$(VOL).tex
+
+odt:
+	rst2odt vol_$(VOL)/newsletter_$(VOL).rst > vol_$(VOL)/newsletter_$(VOL).odt
diff --git a/README b/README
new file mode 100644
index 0000000..9bfd6e0
--- /dev/null
+++ b/README
@@ -0,0 +1,11 @@
+How to compile
+==============
+
+Compiling the newsletter is as simple as is couldn't be. Just define an
+evironment variable named VOL and run make either wihtout parameters to
+compile all, or with one of the parameters html, pdf, latex, odt to compile
+just that file. Examples:
+
+ VOL=2 make                                  # compile all newsletters for vol_2
+ VOL=2 make pdf                              # compile pdf from vol_2
+ VOL=2 make html                             # compile html file for vol_2



More information about the Newsletter-Commits mailing list