[Debbits-commit] [SCM] Git repository for debbits branch, master, updated. 3eb4d7312b5216d13cd356c8fbf804ca7b23b9ed
Ana Beatriz Guerrero ?==?UTF-8?Q?López
ana at ekaia.org
Sat Mar 23 22:07:56 UTC 2013
The following commit has been merged in the master branch:
commit 3eb4d7312b5216d13cd356c8fbf804ca7b23b9ed
Author: Ana Beatriz Guerrero López <ana at ekaia.org>
Date: Sat Mar 23 22:41:58 2013 +0100
add initial Makefile
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..eb99679
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,40 @@
+PELICAN=pelican
+PELICANMASTER=/srv/bits-master.debian.org/software/bin/pelican
+PELICANOPTS=-v
+
+BASEDIR=$(CURDIR)
+INPUTDIR=$(BASEDIR)/content
+OUTPUTDIR=$(BASEDIR)/output
+CONFFILE=$(BASEDIR)/pelicanconf.py
+PUBLISHCONF=$(BASEDIR)/publishconf.py
+
+help:
+ @echo 'Makefile for a pelican Web site '
+ @echo ' '
+ @echo 'Usage: '
+ @echo ' make html (re)generate the web site '
+ @echo ' make mhtml (re)generate the web site in master.d.o '
+ @echo ' make clean remove the generated files '
+ @echo ' make regenerate regenerate files upon modification '
+ @echo ' make publish generate using production settings '
+ @echo ' '
+
+
+html: clean $(OUTPUTDIR)/index.html
+ @echo 'Done'
+
+$(OUTPUTDIR)/%.html:
+ $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
+
+clean:
+ find $(OUTPUTDIR) -mindepth 1 -delete
+ touch $(OUTPUTDIR)/.gitkeep
+ rm -f pelicanconf.pyc publishconf.pyc
+
+regenerate: clean
+ $(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
+
+publish:
+ $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
+
+.PHONY: html help clean regenerate publish
diff --git a/README b/README
index bfbcc69..2d16103 100644
--- a/README
+++ b/README
@@ -4,6 +4,7 @@ http://bits.debian.org
Contents
--------
+Makefile
pelicanconf.py configuration file for pelican
publishconf.py publishing configuration file for pelican
theme-bits/ contains the blog's theme and the templates used.
--
Git repository for debbits
More information about the Debbits-commit
mailing list