monochromatic

monochromatic blog: http://blog.z3bra.org
git clone git://z3bra.org/monochromatic
Log | Files | Refs

commit 3aeb0fb6b824a9d4f67069961288daa7421e744f
parent b7345f03fbc14b0ccc2e927a611e3fa9949fcf3f
Author: z3bra <willy@mailoo.org>
Date:   Tue,  1 Apr 2014 11:43:38 +0200

Makefile to build, package and deploy the blog (thank you 2f30!)

Diffstat:
Makefile | 32++++++++++++++++++++++++++++++++
config.mk | 19+++++++++++++++++++
2 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -0,0 +1,32 @@ +include config.mk + +.PHONY: all package check clean + +all: $(PAGES) $(FEEDS) $(EXTRA) + +package: all + tar -cvzf $(NAME).tar.gz $(PAGES) $(EXTRA) $(FEEDS) + +install: package + mkdir -p $(PREFIX) + tar -xzf $(NAME).tar.gz -C $(PREFIX) + +check: $(PAGES) + @check.sh + +clean: + rm -f $(PAGES) $(NAME).tar.gz + +.SUFFIXES: .txt .html .xml + +HEADER = head.html +FOOTER = foot.html + +$(FEEDS): index.txt + feeds.sh $< > $@ + +.txt.html: $(HEADER) $(FOOTER) + @echo "MARKDOWN `basename $@`" + @cat $(HEADER) > $@ + @markdown $< >> $@ + @cat $(FOOTER) >> $@ diff --git a/config.mk b/config.mk @@ -0,0 +1,19 @@ +MD =/usr/bin/markdown + +NAME = monochromatic +PREFIX = /srv/http/blog.z3bra.org + +PAGES = index.html \ + 2013/12/love-me-some-latex.html \ + 2013/11/plain-old-mails.html \ + 2013/10/home-sweet-home.html \ + 2013/08/test-your-css.html \ + 2013/08/the-hard-way.html \ + 2013/09/java-without-eclipse.html \ + 2014/03/unleash-your-desktop.html \ + 2014/03/toolbox.html \ + 2014/01/images-in-terminal.html \ + about.html + +FEEDS = rss/feed.xml +EXTRA = css img favicon.ico