summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-11-13 19:27:02 +0000
committerNick White <git@njw.me.uk>2010-11-13 19:27:02 +0000
commit401682c5124b581ffc81cc9bd208f19435e93b5b (patch)
treef556690603487f0e322514fe48f5f5f57c2640bf /Makefile
parent46f834568146f2ba5d369e4645c1812941d04c49 (diff)
downloadnjw-website-401682c5124b581ffc81cc9bd208f19435e93b5b.tar.bz2
njw-website-401682c5124b581ffc81cc9bd208f19435e93b5b.zip
Simplify homepage significantly
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 46d70b1..3c9d583 100644
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,12 @@ writing/index.txt: $(BIB) $(WRITING)
sh bibtotxt.sh $(BIB) >> $@
sh listarticles.sh writing $(BIB) >> $@
+index.html: index.txt
+ echo making $@
+ sed "s/TITLE/`head -n 1 < $<`/" < includes/header.xml > $@
+ $(MD) $< | sed 's/<p>/<p style="text-align:center">/' >> $@
+ sed '2d' < includes/footer.xml >> $@
+
clean:
rm -f -- $(TARGETS) $(GZIP)