Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: ec790572a4
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (45 sloc) 1.982 kB
# -*- make -*-
# FILE: "blog/Makefile.in"
# This file is part of utterson.
# utterson is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# utterson 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with utterson. If not, see <http://www.gnu.org/licenses/>.
#
# (C) 2009 by Stefan Marsiske, <stefan.marsiske@gmail.com>
# $Id:$
include cfg/make.cfg
# END OF CONFIG OPTIONS
all: posts archive atom sitemap tags static
make:
rm Makefile
make -f Makefile.in Makefile
install: all
rsync -vcaE -e ssh --delete --exclude drafts/ $(TMPDIR)/* $(LIVESITE)
atom: $(TMPDIR)/atom.xml
sitemap: $(TMPDIR)/sitemap.xml.gz
static: layout/static/*
ksh bin/static $^
clean:
rm $(TMPDIR)/index.html $(TMPDIR)/page-*.html $(TMPDIR)/atom.xml $(TMPDIR)/sitemap.xml.gz
rm -rf $(TMPDIR)/posts $(TMPDIR)/tags $(TMPDIR)/drafts
Makefile: $(CFGDIR)/liveposts $(shell ls $(CFGDIR)/tags/* 2>/dev/null) Makefile.in bin/makemake $(shell ls -t posts/*.html)
ksh bin/makemake >>$@
liveposts:
ls -t posts/*.html >$(CFGDIR)/$@
$(TMPDIR)/sitemap.xml.gz: $(CFGDIR)/liveposts $(shell cat $(CFGDIR)/liveposts 2>/dev/null)
ksh bin/sitemap <$(CFGDIR)/liveposts | gzip -c >$@
last: $(TMPDIR)/$(shell head -1 $(CFGDIR)/liveposts 2>/dev/null)
2nd: $(TMPDIR)/$(shell sed -n -e '2p;2q' $(CFGDIR)/liveposts 2>/dev/null)
$(TMPDIR)/tags/index.html $(TMPDIR)/posts/index.html: layout/xhtml/redir
@test -d $(@D) || mkdir -p $(@D)
ksh bin/tpl xhtml redir >$@
.PHONY: all static make install clean atom sitemap tags
Jump to Line
Something went wrong with that request. Please try again.